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

            Bug ID: 117920
           Summary: ICE: in maybe_record_trace_start, at dwarf2cfi.cc:2591
                    with -O2 -fharden-conditional-branches -mstackrealign
                    --param=max-grow-copy-bb-insns=32
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-checking, 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 59793
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59793&action=edit
auto-reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O2 -fharden-conditional-branches -mstackrealign
--param=max-grow-copy-bb-insns=32 meson-generated_.._u_format_table.c.i
during RTL pass: dwarf2
meson-generated_.._u_format_table.c.i: In function '_mesa_snorm_to_half':
meson-generated_.._u_format_table.c.i:12:1: internal compiler error: in
maybe_record_trace_start, at dwarf2cfi.cc:2591
   12 | }
      | ^
0x2dcee20 internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517
0xec69a9 fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostic.cc:1696
0x77e93c maybe_record_trace_start
        /repo/gcc-trunk/gcc/dwarf2cfi.cc:2591
0x1123e9f create_trace_edges
        /repo/gcc-trunk/gcc/dwarf2cfi.cc:2694
0x11244bc scan_trace
        /repo/gcc-trunk/gcc/dwarf2cfi.cc:2918
0x1124e80 create_cfi_notes
        /repo/gcc-trunk/gcc/dwarf2cfi.cc:2945
0x1124e80 execute_dwarf2_frame
        /repo/gcc-trunk/gcc/dwarf2cfi.cc:3316
0x1124e80 execute
        /repo/gcc-trunk/gcc/dwarf2cfi.cc:3798
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-20241205001947-r15-5930-g739ce47f703d5e-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.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 --with-cloog --with-ppl --with-isl
--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-20241205001947-r15-5930-g739ce47f703d5e-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.0 20241205 (experimental) (GCC)

Reply via email to