Bootstrap error on arm-netbsd1.4 (release branch)

Jeffrey A Law law@cygnus.com
Fri Aug 13 00:36:00 GMT 1999


  In message < 199908121543.QAA04560@sun52.NIS.cambridge >you write:
  > Arrgh!  I thought this was working ok, but I tried a bootstrap of the 
  > release branch (as of this morning) and I get an ICE when building 
  > libchill/chillstdio.c.  I think it can be reduced to
  > 
  > 	static void foo(void) __attribute__ ((constructor));
  > 
  > 	static void foo(void)
  > 	{
  > 	  printf("Hello\n");
  > 	}
  > 
[ ... ]

  > (call_insn 5 4 6 (parallel[ 
  >             (set (reg:CC_NOOV 0 r0)
  >                 (call (mem:SI (symbol_ref:SI ("foo")) 0)
  >                     (const_int 0 [0x0])))
  >             (clobber (reg:SI 14 lr))
  >         ] ) -1 (nil)
  >     (nil)
  >     (nil))
I'd suggest a breakpoint in make_call_insn_raw conditional on 
cur_insn_uid == 5

Then walk backwards from that point to see who/what is setting the weird
mode on the return register from the call.

I would also verify that the stage1 compiler exhibits this bug...  It may be
the case that the compiler is mis-compiling itself...

jeff



More information about the Gcc-bugs mailing list