https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123210
Bug ID: 123210
Summary: [16 Regression] ICE: in
ix86_finalize_stack_frame_flags, at
config/i386/i386.cc:8829 with -Os
-fno-omit-frame-pointer -fPIE -fcondition-coverage
-fstrub=all -mcmodel=large
Product: gcc
Version: 16.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: x86_64-pc-linux-gnu
Created attachment 63090
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63090&action=edit
reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -Os -fno-omit-frame-pointer -fPIE
-fcondition-coverage -fstrub=all -mcmodel=large testcase.c
during RTL pass: pro_and_epilogue
testcase.c: In function 'foo.strub.0':
testcase.c:10:1: internal compiler error: in ix86_finalize_stack_frame_flags,
at config/i386/i386.cc:8829
10 | }
| ^
0x2c78bcd internal_error(char const*, ...)
/repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xe2825f fancy_abort(char const*, int, char const*)
/repo/gcc-trunk/gcc/diagnostics/context.cc:1805
0x9504fb ix86_finalize_stack_frame_flags
/repo/gcc-trunk/gcc/config/i386/i386.cc:8829
0x1aa3d28 ix86_expand_epilogue(int)
/repo/gcc-trunk/gcc/config/i386/i386.cc:10146
0x22f59c2 gen_epilogue()
/repo/gcc-trunk/gcc/config/i386/i386.md:21165
0x1a84288 target_gen_epilogue
/repo/gcc-trunk/gcc/config/i386/i386.md:20670
0x11cf6a6 make_epilogue_seq
/repo/gcc-trunk/gcc/function.cc:6015
0x11cf77b thread_prologue_and_epilogue_insns()
/repo/gcc-trunk/gcc/function.cc:6097
0x11d0142 rest_of_handle_thread_prologue_and_epilogue
/repo/gcc-trunk/gcc/function.cc:6611
0x11d0142 execute
/repo/gcc-trunk/gcc/function.cc:6697
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/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20251218144725-r16-6246-g630c1bfbb5bc3b-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.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-20251218144725-r16-6246-g630c1bfbb5bc3b-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251218 (experimental) (GCC)