https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100458
Bug ID: 100458
Summary: [10 Regression] arm: ICE in change_address_1 with
-march=armv7-m -fstack-protector-all -mpure-code
Product: gcc
Version: 10.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: acoplan at gcc dot gnu.org
Target Milestone: ---
On the head of the GCC 10 branch, the following fails:
$ cat test.c
void a() {}
$ gcc/xgcc -B gcc test.c -c -march=armv7-m -fstack-protector-all -mpure-code
during RTL pass: mach
test.c: In function ‘a’:
test.c:1:11: internal compiler error: in change_address_1, at emit-rtl.c:2273
1 | void a() {}
| ^
0x7c1890 change_address_1
/home/alecop01/toolchain/src/gcc/gcc/emit-rtl.c:2273
0x7f069d emit_move_insn(rtx_def*, rtx_def*)
/home/alecop01/toolchain/src/gcc/gcc/expr.c:3851
0x10a5779 gen_split_74(rtx_insn*, rtx_def**)
/home/alecop01/toolchain/src/gcc/gcc/config/arm/arm.md:9218
0x7c6873 try_split(rtx_def*, rtx_insn*, int)
/home/alecop01/toolchain/src/gcc/gcc/emit-rtl.c:3836
0xa76801 split_insn
/home/alecop01/toolchain/src/gcc/gcc/recog.c:2884
0xa7acc7 split_all_insns_noflow()
/home/alecop01/toolchain/src/gcc/gcc/recog.c:3046
0xe05ea7 arm_reorg
/home/alecop01/toolchain/src/gcc/gcc/config/arm/arm.c:19154
0xaa5389 execute
/home/alecop01/toolchain/src/gcc/gcc/reorg.c:4010
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.
I can't reproduce it on any other active branches.