gcc-3.4.1-20040625 crashes when attempting to compile attached file thread.i (from eCos thread.cxx). Invocation of compiler: arm-elf-gcc -c -I/Users/hpanther/DevCurrent/FireWireEmbedded/platforms_os/iceLynx/install/include -I/Users/hpanther/DevCurrent/ecos/packages/kernel/current -I/Users/hpanther/DevCurrent/ecos/packages/kernel/current/src -I/Users/hpanther/DevCurrent/ecos/packages/kernel/current/tests -I. -I/Users/hpanther/DevCurrent/ecos/packages/kernel/current/src/common/ -mthumb -mbig-endian -mcpu=arm7tdmi -msoft-float -malignment-traps -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -gdwarf-2 -Os -finline-limit=80 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -Wp,-MD,src/common/thread.tmp -o src/common/kernel_thread.o /Users/hpanther/DevCurrent/ecos/packages/kernel/current/src/common/thread.cxx Error message: /Users/hpanther/DevCurrent/ecos/packages/kernel/current/src/common/thread.cxx:396: internal compiler error: in do_output_reload, at reload1.c:6905 Please submit a full bug report, gcc Configure options: # /Users/hpanther/DevCurrent/gnu_toolchain/gcc-3.4.1-20040625/configure --target=arm-elf --prefix=/opt/arm-elf --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-gxx-include-dir=/opt/arm-elf/arm-elf/include --with-gcc-version-trigger=/Users/hpanther/DevCurrent/gnu_toolchain/gcc-3.4.1-20040625/gcc/version.c
Created attachment 6649 [details] Preprocessed source causing the crash
*** Bug 15168 has been marked as a duplicate of this bug. ***
note this testcase fails only with c++ compiler, use '-O1 -mthumb': ------------------------------------------------------------------------------ struct foo { int a, b; }; void bar (struct foo *p) { if (!(p->a & 2)) ; else p->b = 0; } ------------------------------------------------------------------------------ Confirmed, a regression from 3.3.4.
*** This bug has been marked as a duplicate of 15948 ***