https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129016
Bug ID: 129016
Summary: [14/15/16/17 Regression] ICE: in
expand_builtin_eh_common, at except.cc:2088 with
-fexceptions -finstrument-functions and
_subborrow_u32()
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: rtl-optimization
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 66290
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66290&action=edit
reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -fexceptions -finstrument-functions testcase.c
during RTL pass: expand
testcase.c: In function 'main':
testcase.c:10:1: internal compiler error: in expand_builtin_eh_common, at
except.cc:2088
10 | main()
| ^~~~
0x2edbfc9 internal_error(char const*, ...)
/repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xd1501f fancy_abort(char const*, int, char const*)
/repo/gcc-trunk/gcc/diagnostics/context.cc:1813
0x8764ad expand_builtin_eh_common
/repo/gcc-trunk/gcc/except.cc:2088
0x1035ce9 expand_builtin_eh_pointer(tree_node*)
/repo/gcc-trunk/gcc/except.cc:2099
0x1068be8 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
/repo/gcc-trunk/gcc/expr.cc:12860
0x107815d store_expr(tree_node*, rtx_def*, int, bool, bool)
/repo/gcc-trunk/gcc/expr.cc:6828
0x107b488 expand_assignment(tree_node*, tree_node*, bool)
/repo/gcc-trunk/gcc/expr.cc:6524
0x107b488 expand_assignment(tree_node*, tree_node*, bool)
/repo/gcc-trunk/gcc/expr.cc:6013
0xf0ded4 expand_call_stmt
/repo/gcc-trunk/gcc/cfgexpand.cc:3239
0xf0ded4 expand_gimple_stmt_1
/repo/gcc-trunk/gcc/cfgexpand.cc:4282
0xf0ded4 expand_gimple_stmt
/repo/gcc-trunk/gcc/cfgexpand.cc:4429
0xf0ff57 expand_gimple_basic_block
/repo/gcc-trunk/gcc/cfgexpand.cc:6547
0xf12357 execute
/repo/gcc-trunk/gcc/cfgexpand.cc:7298
/repo/gcc-trunk/binary-trunk-20261125060023-gf8fb076af5b-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/cc1
-quiet -iprefix
/repo/gcc-trunk/binary-trunk-20261125060023-gf8fb076af5b-checking-yes-rtl-df-extra-nobootstrap-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 -fexceptions -finstrument-functions -o
/tmp/ccQac0xB.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.
$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20261125060023-gf8fb076af5b-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --enable-libsanitizer
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20261125060023-gf8fb076af5b-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20261125 (experimental) (GCC)