Bug 39182 - ICE in gen_add2_insn, at optabs.c:4884
Summary: ICE in gen_add2_insn, at optabs.c:4884
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.3.4
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 39320 39389 40776 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-13 18:48 UTC by Joel Sherrill
Modified: 2011-02-08 19:33 UTC (History)
4 users (show)

See Also:
Host:
Target: m32c-rtems
Build:
Known to work:
Known to fail:
Last reconfirmed: 2009-02-13 20:28:57


Attachments
preprocessed test case (2.45 KB, text/plain)
2009-02-13 18:50 UTC, Joel Sherrill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Sherrill 2009-02-13 18:48:57 UTC
We get this error multiple places in the RTEMS code base.  

m32c-rtems4.10-gcc --pipe  -mcpu=m32cm --pipe -DHAVE_CONFIG_H   -I.. -I../../../lib/include -D__RTEMS_INSIDE__  -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -fasm -g -O2  -mcpu=m32cm -MT src/libsapi_a-ioregisterdriver.o -MD -MP -MF src/.deps/libsapi_a-ioregisterdriver.Tpo -c -o src/libsapi_a-ioregisterdriver.o `test -f 'src/ioregisterdriver.c' || echo '../../../../../rtems/cpukit/sapi/'`src/ioregisterdriver.c
../../../../../rtems/cpukit/sapi/src/ioregisterdriver.c: In function 'rtems_io_register_driver':
../../../../../rtems/cpukit/sapi/src/ioregisterdriver.c:92: internal compiler error: in gen_add2_insn, at optabs.c:4884
Comment 1 Joel Sherrill 2009-02-13 18:50:39 UTC
Created attachment 17295 [details]
preprocessed test case
Comment 2 Joel Sherrill 2009-02-13 18:52:21 UTC
WORKS: m32c-rtems4.10-gcc -mcpu=m32cm j.c -c
FAILS: m32c-rtems4.10-gcc -mcpu=m32cm j.c -O1 -c
FAILS: m32c-rtems4.10-gcc -mcpu=m32cm j.c -O2 -c
Comment 3 DJ Delorie 2009-02-13 20:28:57 UTC
Fails with m32c-elf in 4.3.4 also.
Note: does NOT fail in 4.4/trunk
Comment 4 Andrew Pinski 2009-02-27 20:25:16 UTC
*** Bug 39320 has been marked as a duplicate of this bug. ***
Comment 5 Andrew Pinski 2009-04-16 20:34:27 UTC
*** Bug 39389 has been marked as a duplicate of this bug. ***
Comment 6 Andrew Pinski 2009-07-16 17:08:32 UTC
*** Bug 40776 has been marked as a duplicate of this bug. ***
Comment 7 Joel Sherrill 2009-07-17 14:32:49 UTC
Patch committed.  Ran coverage to verify that it didn't introduce a new uncovered range of code.

Sorry to have broken it. Trying to get to 100% test coverage and eliminate dead code.
Comment 8 Joel Sherrill 2009-07-17 14:38:23 UTC
Stupid human error.  Clicked on wrong bug.
Comment 9 Joel Sherrill 2011-02-08 19:33:37 UTC
Fixed as of gcc 4.5.2.  Closing.