https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100775
Bug ID: 100775
Summary: ICE: in df_exit_block_bitmap_verify, at df-scan.c:4164
with -mthumb -fzero-call-used-regs=used
Product: gcc
Version: 12.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-hardfloat-linux-gnueabi
Created attachment 50873
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50873&action=edit
reduced testcase
Compiler output:
$ armv7a-hardfloat-linux-gnueabi-gcc -mthumb -fzero-call-used-regs=used
testcase.c
exit_block_uses = 0 [r0] 3 [r3] 7 [r7] 13 [sp] 14 [lr] 102 [sfp]
df->exit_block_uses = 0 [r0] 7 [r7] 13 [sp] 14 [lr] 102 [sfp]
during RTL pass: mach
testcase.c: In function 'foo':
testcase.c:5:1: internal compiler error: in df_exit_block_bitmap_verify, at
df-scan.c:4164
5 | }
| ^
0xbb6462 df_exit_block_bitmap_verify
/repo/gcc-trunk/gcc/df-scan.c:4164
0xbb6462 df_scan_verify()
/repo/gcc-trunk/gcc/df-scan.c:4217
0xba0067 df_verify()
/repo/gcc-trunk/gcc/df-core.c:1818
0xba0067 df_analyze_1
/repo/gcc-trunk/gcc/df-core.c:1214
0x13b5a99 thumb2_reorg
/repo/gcc-trunk/gcc/config/arm/arm.c:18990
0x13b5a99 arm_reorg
/repo/gcc-trunk/gcc/config/arm/arm.c:19209
0xf96979 execute
/repo/gcc-trunk/gcc/reorg.c:3927
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-hardfloat-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-armv7a-hardfloat/bin/armv7a-hardfloat-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r12-1066-20210526112842-g95d67762171-checking-yes-rtl-df-extra-armv7a-hardfloat/bin/../libexec/gcc/armv7a-hardfloat-linux-gnueabi/12.0.0/lto-wrapper
Target: armv7a-hardfloat-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=hard --with-fpu=vfpv4
--with-arch=armv7-a --with-sysroot=/usr/armv7a-hardfloat-linux-gnueabi
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=armv7a-hardfloat-linux-gnueabi
--with-ld=/usr/bin/armv7a-hardfloat-linux-gnueabi-ld
--with-as=/usr/bin/armv7a-hardfloat-linux-gnueabi-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r12-1066-20210526112842-g95d67762171-checking-yes-rtl-df-extra-armv7a-hardfloat
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.0.0 20210526 (experimental) (GCC)