bootstrapping fails with current CVS version

Richard Henderson rth@cygnus.com
Sun Oct 31 23:03:00 GMT 1999


On Wed, Oct 27, 1999 at 07:39:17AM +0200, Andreas Jaeger wrote:
> Program received signal SIGSEGV, Segmentation fault.
> 0x82722c8 in mark_target_live_regs (insns=0x401c9ba0, target=0x401df260, 
>     res=0xbffff034) at ../../cvs/gcc/gcc/resource.c:835
> 835         b = BLOCK_NUM (target);

Blah.

r~

        * resource.c (mark_target_live_regs): Check that the target
        insn wasn't created after compute_bb_for_insn.

Index: resource.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/resource.c,v
retrieving revision 1.16
diff -c -p -d -r1.16 resource.c
*** resource.c	1999/10/27 03:44:08	1.16
--- resource.c	1999/10/27 04:57:11
*************** mark_target_live_regs (insns, target, re
*** 831,837 ****
  	b = tinfo->block;
      }
  
!   if (b == -1)
      b = BLOCK_NUM (target);
  
    if (target_hash_table != NULL)
--- 831,838 ----
  	b = tinfo->block;
      }
  
!   if (b == -1
!       && INSN_UID (target) < (int) VARRAY_SIZE (basic_block_for_insn))
      b = BLOCK_NUM (target);
  
    if (target_hash_table != NULL)



More information about the Gcc-bugs mailing list