This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix comp-goto-1 on ia64
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 24 Mar 2002 18:47:42 -0800
- Subject: fix comp-goto-1 on ia64
This was really just an -funroll-loops bug, reading from
uninitialized memory.
r~
* unroll.c (unroll_loop): Zero label_map.
Index: unroll.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/unroll.c,v
retrieving revision 1.160.2.2
diff -c -p -d -r1.160.2.2 unroll.c
*** unroll.c 2002/03/15 03:04:54 1.160.2.2
--- unroll.c 2002/03/25 02:45:10
*************** unroll_loop (loop, insn_count, strength_
*** 727,734 ****
if (max_labelno > 0)
{
! map->label_map = (rtx *) xmalloc (max_labelno * sizeof (rtx));
!
local_label = (char *) xcalloc (max_labelno, sizeof (char));
}
--- 727,733 ----
if (max_labelno > 0)
{
! map->label_map = (rtx *) xcalloc (max_labelno, sizeof (rtx));
local_label = (char *) xcalloc (max_labelno, sizeof (char));
}