When compiling using the options -O2 -m4 -fnew-ra -S, GCC crashes on almost every file in stress-1.17: ./aiunit.i:5631: internal compiler error: in remember_move, at ra-build.c:579 ./advdomestic.i:3820: internal compiler error: in remember_move, at ra-build.c:579 ./advmilitary.i:3944: internal compiler error: in remember_move, at ra-build.c:579 ./attsub.i:12800: internal compiler error: in remember_move, at ra-build.c:579 ./avl.i:1720: internal compiler error: in remember_move, at ra-build.c:579 ./avltr.i:2706: internal compiler error: in remember_move, at ra-build.c:579 ./blitcursor.i:19374: internal compiler error: in remember_move, at ra-build.c:579 ... It appears to be failing a sanity check in new-ra: /* Some sanity test for the copy insn. */ struct df_link *slink = DF_INSN_USES (df, insn); struct df_link *link = DF_INSN_DEFS (df, insn); if (!link || !link->ref || !slink || !slink->ref) <- line 578 abort (); Toshi
Created attachment 5383 [details] file from stress-1.17 GCC testsuite
Created attachment 5527 [details] somewhat reduced testcase (31 lines)
Confirmed with new-ra cvs (20031009 is what it claims to be but I checked it out this morning).
Fixed on new-regalloc branch from 20040408: $ ./xgcc -B. -S -O2 -m4 -fnew-ra -S ~/tmp/13525.i $
Fixed so closing.