https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67383
Bug ID: 67383 Summary: reload_cse_simplify_operands fails on ARMV7-M Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: david.cock at inf dot ethz.ch Target Milestone: --- Created attachment 36263 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36263&action=edit Preprocessed C source Compiling with the following command line: ==== arm-linux-gnueabi-gcc -std=c99 -U__STRICT_ANSI__ -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fno-omit-frame-pointer -fno-builtin -nostdinc -U__linux__ -Ulinux -Wall -Wshadow -Wmissing-declarations -Wmissing-field-initializers -Wredundant-decls -Werror -fno-unwind-tables -Wno-packed-bitfield-compat -mthumb -mcpu=cortex-m3 -march=armv7-m -mapcs -mabi=aapcs-linux -msingle-pic-base -mpic-register=r10 -DPIC_REGISTER=R10 -fPIE -ffixed-r9 -DTHREAD_REGISTER=R9 -D__ARM_CORTEX__ -D__ARM_ARCH_7M__ -Wno-unused-but-set-variable -Wno-format -D__pandaboard__ -DBARRELFISH -DBF_BINARY_PREFIX=\"\" -D_WANT_IO_C99_FORMATS -DCONFIG_NEWLIB -DCONFIG_SVM -DCONFIG_ARRAKISMON -DUSE_KALUGA_DVM -DCONFIG_INTERCONNECT_DRIVER_LMP -DCONFIG_INTERCONNECT_DRIVER_UMP -DCONFIG_FLOUNDER_BACKEND_LMP -DCONFIG_FLOUNDER_BACKEND_UMP -g -O2 -I../include -I../include/arch/arm -I../lib/newlib/newlib/libc/include -I../include/c -I../include/target/arm -I../lib/lwip/src/include/ipv4 -I../lib/lwip/src/include -I./armv7-m/include -I../lib/mm/. -I./armv7-m/lib/mm/. -o ./armv7-m/lib/mm/_for_lib_mm/mm.o -c ../lib/mm/mm.c ==== Fails as follows: ==== ../lib/mm/mm.c: In function ‘chunk_node’: ../lib/mm/mm.c:430:1: error: insn does not satisfy its constraints: } ^ (insn 149 634 633 10 (parallel [ (set (reg:DI 4 r4 [431]) (plus:DI (reg:DI 4 r4 [431]) (reg:DI 3 r3 [orig:264 D.9125 ] [264]))) (clobber (reg:CC 100 cc)) ]) ../lib/mm/mm.c:349 2 {*arm_adddi3} (expr_list:REG_EQUIV (mem:DI (plus:SI (reg/f:SI 13 sp) (const_int 16 [0x10])) [0 S8 A64]) (nil))) ../lib/mm/mm.c:430:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:411 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions. Preprocessed source stored into /tmp/cc0q4UX2.out file, please attach this to your bugreport. ==== Version string: arm-linux-gnueabi-gcc ( 4.9.2-10) 4.9.2