https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124098

            Bug ID: 124098
           Summary: [16 Regression] ICE: in
                    ix86_finalize_stack_frame_flags, at
                    config/i386/i386.cc:8829 with -O2
                    -march=graniterapids-d
           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 63665
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63665&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O2 -march=graniterapids-d testcase.c 
during RTL pass: pro_and_epilogue
testcase.c: In function 'foo':
testcase.c:9:1: internal compiler error: in ix86_finalize_stack_frame_flags, at
config/i386/i386.cc:8829
    9 | }
      | ^
0x2ca0ebd internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xe2d7e3 fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostics/context.cc:1812
0x955a71 ix86_finalize_stack_frame_flags
        /repo/gcc-trunk/gcc/config/i386/i386.cc:8829
0x1ab47a8 ix86_expand_epilogue(int)
        /repo/gcc-trunk/gcc/config/i386/i386.cc:10146
0x2448542 gen_epilogue()
        /repo/gcc-trunk/gcc/config/i386/i386.md:21184
0x1a94d48 target_gen_epilogue
        /repo/gcc-trunk/gcc/config/i386/i386.md:20689
0x11d6ee6 make_epilogue_seq
        /repo/gcc-trunk/gcc/function.cc:6015
0x11d6fbb thread_prologue_and_epilogue_insns()
        /repo/gcc-trunk/gcc/function.cc:6097
0x11d7982 rest_of_handle_thread_prologue_and_epilogue
        /repo/gcc-trunk/gcc/function.cc:6611
0x11d7982 execute
        /repo/gcc-trunk/gcc/function.cc:6697
/repo/gcc-trunk/binary-trunk-20260213011632-r16-7493-gefc76a7f339c23-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.0.1/cc1
-quiet -iprefix
/repo/gcc-trunk/binary-trunk-20260213011632-r16-7493-gefc76a7f339c23-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../lib/gcc/x86_64-pc-linux-gnu/16.0.1/
testcase.c -quiet -dumpdir a- -dumpbase testcase.c -dumpbase-ext .c
-march=graniterapids-d -O2 -o /tmp/cc2UWM1f.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-20260213011632-r16-7493-gefc76a7f339c23-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.0.1/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-20260213011632-r16-7493-gefc76a7f339c23-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.1 20260213 (experimental) (GCC)

Reply via email to