Current gcc trunk with the proposed graphite merge (http://gcc.gnu.org/ml/gcc-patches/2010-08/msg00080.html) still ICEs the compiler when the gcc.c-torture/execute/strncmp-1.c testcase is compiled with -fgraphite-identity. The error appears as...
gcc-4 strncmp-1.c -w -Os -lm -m32 -fgraphite-identity -o strncmp-1.x7 strncmp-1.c: In function main: strncmp-1.c:44:1: internal compiler error: in rename_uses, at sese.c:534 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. The ICE doesn't backtrace in gdb... gdb /sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.4.0/4.6.0/cc1 GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May 5 04:36:56 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ............. done (gdb) r -fpreprocessed strncmp-1.i -fPIC -quiet -dumpbase strncmp-1.c -mmacosx-version-min=10.6.4 -m32 -mtune=generic -auxbase strncmp-1 -Os -w -version -fgraphite-identity -o strncmp-1.s Starting program: /sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.4.0/4.6.0/cc1 -fpreprocessed strncmp-1.i -fPIC -quiet -dumpbase strncmp-1.c -mmacosx-version-min=10.6.4 -m32 -mtune=generic -auxbase strncmp-1 -Os -w -version -fgraphite-identity -o strncmp-1.s Reading symbols for shared libraries .++++++++++++..... done GNU C (GCC) version 4.6.0 20100807 (experimental) (x86_64-apple-darwin10.4.0) compiled by GNU C version 4.6.0 20100807 (experimental), GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C (GCC) version 4.6.0 20100807 (experimental) (x86_64-apple-darwin10.4.0) compiled by GNU C version 4.6.0 20100807 (experimental), GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 51323d20c79050973b53377b407f3f68 strncmp-1.c: In function main: strncmp-1.c:44:1: internal compiler error: in rename_uses, at sese.c:534 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Program exited with code 04. (gdb) bt No stack. A log stepping from the sese.c:534 breakpoint up to the crash is attached. -- Summary: gcc.c-torture/execute/strncmp-1.c ICEs with -fgraphite- identity Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: howarth at nitro dot med dot uc dot edu GCC build triplet: x86_64-apple-darwin10 GCC host triplet: x86_64-apple-darwin10 GCC target triplet: x86_64-apple-darwin10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45230