* emit-rtl.c (init_emit): xcalloc regno_pointer_align.
authorJan Hubicka <jh@suse.cz>
Sat, 5 Apr 2008 12:25:32 +0000 (14:25 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 5 Apr 2008 12:25:32 +0000 (12:25 +0000)
From-SVN: r133933

gcc/ChangeLog
gcc/emit-rtl.c

index 785ec4ab577e5000a37b388b2fa0298ba817de38..de51e84e60451e6763af2657e9ffd2aeff331749 100644 (file)
@@ -1,5 +1,7 @@
 2008-04-05  Jan Hubicka  <jh@suse.cz>
 
+       * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
+
        * tree-dump.c (dump_enable_all): Remove prototype; do not accept
        letter argument.
        (dump_files): Update.
index d000ee06b4323a97a4b792ea47103e76213e166f..fd26d0157637b73b253a6c10344b686b5fc0df6c 100644 (file)
@@ -4991,8 +4991,8 @@ init_emit (void)
   rtl.emit.regno_pointer_align_length = LAST_VIRTUAL_REGISTER + 101;
 
   rtl.emit.regno_pointer_align
-    = xmalloc (rtl.emit.regno_pointer_align_length
-              * sizeof (unsigned char));
+    = xcalloc (rtl.emit.regno_pointer_align_length
+              * sizeof (unsigned char), 1);
 
   regno_reg_rtx
     = ggc_alloc (rtl.emit.regno_pointer_align_length * sizeof (rtx));