aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/unroll.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7ab39ff..e0b396c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2002-03-24 Richard Henderson <rth@redhat.com>
+ * unroll.c (unroll_loop): Zero label_map.
+
* gcse.c: Include except.h.
* Makefile.in (gcse.o): Update.
diff --git a/gcc/unroll.c b/gcc/unroll.c
index cc38656..1047ebf 100644
--- a/gcc/unroll.c
+++ b/gcc/unroll.c
@@ -721,8 +721,7 @@ unroll_loop (loop, insn_count, strength_reduce_p)
if (max_labelno > 0)
{
- map->label_map = (rtx *) xmalloc (max_labelno * sizeof (rtx));
-
+ map->label_map = (rtx *) xcalloc (max_labelno, sizeof (rtx));
local_label = (char *) xcalloc (max_labelno, sizeof (char));
}