gcc-4.5.0-RC-20100406 triggers an ICE while building RTEMS: ... lm32-rtems4.11-gcc --pipe -DHAVE_CONFIG_H -I.. -I../../cpukit/../../../lm32_evr/lib/include -DNO_SSI -DNO_SSL -DNO_CGI -O0 -g -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT l ../../../../../../c/src/../../cpukit/mghttpd/mongoose.c: In function 'handle_request_body': ../../../../../../c/src/../../cpukit/mghttpd/mongoose.c:3132:1: error: unrecognizable insn: (insn 333 332 334 47 ../../../../../../c/src/../../cpukit/mghttpd/mongoose.c:3122 (set (reg:SI 157) (subreg:SI (mem/c/i:DI (plus:SI (reg/f:SI 33 virtual-stack-vars) (const_int -8 [0xfffffffffffffff8])) [0 content_len+0 S8 A64]) 4)) -1 (nil)) ../../../../../../c/src/../../cpukit/mghttpd/mongoose.c:3132:1: internal compiler error: in extract_insn, at recog.c:2103 Please submit a full bug report, A gcc-4.4.3 based lm32-rtems*-gcc succeed in building the identical sources without any complaint => regression
Created attachment 20363 [details] *.i of the source file triggering the ICE
Did you have patches to get past http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43527 or has it just gone away?
(In reply to comment #2) > Did you have patches to get past > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43527 or has it just gone away? Neither. This breakdown is with the rtems-4.11-lm32-rtems4.11-gcc rpm, i.e. it is built from the gcc-4.5.0-RC-20100406 candidate tarball. Also, unlike what you write in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43527#c1 (compiles at -O0, doesn't compile at -O1), this breakdown is with -O0.
For the record: Bug is also present in gcc-4.5.0 (final).
This is the same as 43805. Looks like it can be fixed by removing GO_IF_MODE_DEPENDENT_ADDRESS from lm32.h. I'll submit a patch shotly.
Created attachment 20747 [details] Possible fix for bug
Subject: Bug 43726 Author: jbeniston Date: Thu May 27 15:05:48 2010 New Revision: 159922 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159922 Log: PR 43726 * config/lm32/lm32.h: Remove definition of GO_IF_MODE_DEPENDENT_ADDRESS. Modified: trunk/gcc/ChangeLog trunk/gcc/config/lm32/lm32.h
FWIW: I added your patch to the RTEMS lm32-gcc-4.5.0 toolchains. With this patch applied, the ICE during building RTEMS, I had experienced does not occur anymore. Compiling RTEMS at -O2 also seems to work.
Subject: Bug 43726 Author: jbeniston Date: Thu May 27 15:45:11 2010 New Revision: 159926 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159926 Log: 2010-05-27 Jon Beniston <jon@beniston.com> PR 43726 * config/lm32/lm32.h: Remove definition of GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year. Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/config/lm32/lm32.h
GCC 4.5.1 is being released, adjusting target milestone.
GCC 4.5.2 is being released, adjusting target milestone.
*** Bug 43805 has been marked as a duplicate of this bug. ***
Works with 4.5.2