https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125872
Bug ID: 125872
Summary: [17 Regression] ICE: SIGSEGV in bb_seq_addr
(gimple.h:1833) with -O -fno-tree-dce
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 64768
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64768&action=edit
reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -fno-tree-dce testcase.c
during GIMPLE pass: backprop
testcase.c: In function 'foo':
testcase.c:2:1: internal compiler error: Segmentation fault
2 | foo(float f)
| ^~~
0x2f190ff internal_error(char const*, ...)
/repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0x16fe20f crash_signal
/repo/gcc-trunk/gcc/toplev.cc:325
0x12879e7 bb_seq_addr(basic_block_def*)
/repo/gcc-trunk/gcc/gimple.h:1833
0x12879e7 gsi_start_bb(basic_block_def*)
/repo/gcc-trunk/gcc/gimple-iterator.h:135
0x12879e7 gsi_for_stmt(gimple*)
/repo/gcc-trunk/gcc/gimple-iterator.cc:633
0x2cd94a5 execute
/repo/gcc-trunk/gcc/gimple-ssa-backprop.cc:1144
0x2cd94a5 execute
/repo/gcc-trunk/gcc/gimple-ssa-backprop.cc:1182
/repo/gcc-trunk/binary-trunk-20260616075354-ged5d77a4e80-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/cc1
-quiet -iprefix
/repo/gcc-trunk/binary-trunk-20260616075354-ged5d77a4e80-checking-yes-rtl-df-extra-amd64/bin/../lib/gcc/x86_64-pc-linux-gnu/17.0.0/
testcase.c -quiet -dumpdir a- -dumpbase testcase.c -dumpbase-ext .c
-mtune=generic -march=x86-64 -O -fno-tree-dce -o /tmp/cc2jh74q.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.