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
Created attachment 17295 [details] preprocessed test case
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
Fails with m32c-elf in 4.3.4 also. Note: does NOT fail in 4.4/trunk
*** Bug 39320 has been marked as a duplicate of this bug. ***
*** Bug 39389 has been marked as a duplicate of this bug. ***
*** Bug 40776 has been marked as a duplicate of this bug. ***
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.
Stupid human error. Clicked on wrong bug.
Fixed as of gcc 4.5.2. Closing.