This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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));
      }
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]