https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126249
Bug ID: 126249
Summary: [17 Regression] ICE: in
ix86_finalize_stack_frame_flags, at
config/i386/i386.cc:8829 with -O -mavxifma
-mstringop-strategy=vector_loop and memcpy
Product: gcc
Version: 17.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 65037
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65037&action=edit
reduced testcase
Looks similar to PR126202, but the testcase there seems to be fixed (at least,
it's in the testsuite).
Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -mavxifma -mstringop-strategy=vector_loop
testcase.c
during RTL pass: pro_and_epilogue
testcase.c: In function 'foo':
testcase.c:10:1: internal compiler error: in ix86_finalize_stack_frame_flags,
at config/i386/i386.cc:8829
10 | }
| ^
0x30c503f internal_error(char const*, ...)
/repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xea71e9 fancy_abort(char const*, int, char const*)
/repo/gcc-trunk/gcc/diagnostics/context.cc:1813
0x9917fa ix86_finalize_stack_frame_flags
/repo/gcc-trunk/gcc/config/i386/i386.cc:8829
0x1bbd73f ix86_expand_epilogue(int)
/repo/gcc-trunk/gcc/config/i386/i386.cc:10146
0x26dd5a2 gen_epilogue()
/repo/gcc-trunk/gcc/config/i386/i386.md:21839
0x1b9a2b8 target_gen_epilogue
/repo/gcc-trunk/gcc/config/i386/i386.md:21344
0x126f31e make_epilogue_seq
/repo/gcc-trunk/gcc/function.cc:6024
0x126f405 thread_prologue_and_epilogue_insns()
/repo/gcc-trunk/gcc/function.cc:6109
0x126fe22 rest_of_handle_thread_prologue_and_epilogue
/repo/gcc-trunk/gcc/function.cc:6626
0x126fe22 execute
/repo/gcc-trunk/gcc/function.cc:6712
/repo/gcc-trunk/binary-trunk-20260713054658-r17-2348-g6df03d626ffe30-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-20260713054658-r17-2348-g6df03d626ffe30-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 -mavxifma
-mstringop-strategy=vector_loop -mtune=generic -march=x86-64 -O -o
/tmp/cciBR2Ml.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-20260713054658-r17-2348-g6df03d626ffe30-checking-yes-rtl-df-extra-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
--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-20260713054658-r17-2348-g6df03d626ffe30-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20260713 (experimental) (GCC)