https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89400
Bug ID: 89400 Summary: ICE: output_operand: invalid %-code with -march=armv6kz -mthumb -munaligned-access Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: armv7a-softfp-linux-gnueabi Created attachment 45764 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45764&action=edit reduced testcase Compiler output: $ armv7a-softfp-linux-gnueabi-gcc -march=armv6kz -mthumb -munaligned-access testcase.c during RTL pass: final testcase.c: In function 'foo': testcase.c:7:1: internal compiler error: output_operand: invalid %-code 7 | } | ^ 0x89f50f output_operand_lossage(char const*, ...) /repo/gcc-trunk/gcc/final.c:3610 0x8a0676 output_asm_insn(char const*, rtx_def**) /repo/gcc-trunk/gcc/final.c:3979 0x8a16b2 output_asm_insn(char const*, rtx_def**) /repo/gcc-trunk/gcc/final.c:3841 0x8a16b2 final_scan_insn_1 /repo/gcc-trunk/gcc/final.c:3107 0x8a4beb final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) /repo/gcc-trunk/gcc/final.c:3153 0x8a4d15 final_1 /repo/gcc-trunk/gcc/final.c:2021 0x8a6234 rest_of_handle_final /repo/gcc-trunk/gcc/final.c:4659 0x8a6234 execute /repo/gcc-trunk/gcc/final.c:4737 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $ armv7a-softfp-linux-gnueabi-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-armv7a-softfp/bin/armv7a-softfp-linux-gnueabi-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-269006-checking-yes-rtl-df-extra-armv7a-softfp/bin/../libexec/gcc/armv7a-softfp-linux-gnueabi/9.0.1/lto-wrapper Target: armv7a-softfp-linux-gnueabi Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --with-cloog --with-ppl --with-isl --with-float=softfp --with-arch=armv7-a --with-sysroot=/usr/armv7a-softfp-linux-gnueabi --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=armv7a-softfp-linux-gnueabi --with-ld=/usr/bin/armv7a-softfp-linux-gnueabi-ld --with-as=/usr/bin/armv7a-softfp-linux-gnueabi-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-269006-checking-yes-rtl-df-extra-armv7a-softfp Thread model: posix gcc version 9.0.1 20190219 (experimental) (GCC)