Bug 13525 - [new-ra] ICE on valid code.
Summary: [new-ra] ICE on valid code.
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: new-ra
: P2 normal
Target Milestone: ---
Assignee: Michael Matz
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks: 13246
  Show dependency treegraph
 
Reported: 2003-12-30 20:04 UTC by Toshiyasu Morita
Modified: 2004-04-08 21:12 UTC (History)
1 user (show)

See Also:
Host: i386-linux
Target: sh-elf
Build: i386-linux
Known to work:
Known to fail:
Last reconfirmed: 2004-01-20 00:24:46


Attachments
file from stress-1.17 GCC testsuite (24.57 KB, text/plain)
2003-12-30 20:06 UTC, Toshiyasu Morita
Details
somewhat reduced testcase (31 lines) (316 bytes, text/plain)
2004-01-20 00:23 UTC, Dara Hazeghi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toshiyasu Morita 2003-12-30 20:04:53 UTC
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
Comment 1 Toshiyasu Morita 2003-12-30 20:06:09 UTC
Created attachment 5383 [details]
file from stress-1.17 GCC testsuite
Comment 2 Dara Hazeghi 2004-01-20 00:23:09 UTC
Created attachment 5527 [details]
somewhat reduced testcase (31 lines)
Comment 3 Dara Hazeghi 2004-01-20 00:24:45 UTC
Confirmed with new-ra cvs (20031009 is what it claims to be but I checked it out
this morning).
Comment 4 Serge Belyshev 2004-04-08 21:03:00 UTC
Fixed on new-regalloc branch from 20040408:

$ ./xgcc -B. -S -O2 -m4 -fnew-ra -S ~/tmp/13525.i
$
Comment 5 Andrew Pinski 2004-04-08 21:12:55 UTC
Fixed so closing.