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

            Bug ID: 123157
           Summary: ICE: in create_trace_edges, at dwarf2cfi.cc
           Product: gcc
           Version: 15.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 522024330006 at smail dot nju.edu.cn
  Target Milestone: ---

This ICE is reproducible on the GCC trunk and may be duplicate of bug 120250;
however, bug 120250 no longer appears to on the GCC trunk.

Compiler Explorer: https://godbolt.org/z/v835bzc7j

========================
$gcc -v
========================
Using built-in specs.
COLLECT_GCC=/workspace/install/gcc/install_15.2.0/bin/gcc
COLLECT_LTO_WRAPPER=/workspace/install/gcc/install_15.2.0/libexec/gcc/x86_64-pc-linux-gnu/15.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /workspace/install/gcc/src/gcc/configure --enable-coverage
--enable-checking --disable-multilib --disable-shared --disable-bootstrap
--enable-languages=c,c++ --prefix=/workspace/install/gcc/install_15.2.0
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 15.2.0 (GCC)
========================
void func(int i) {

}

int main() {
    double w_1[256];
    void *p = (void*)&func;
    int i;

    for (i = 0; i < 256; i++) {
        if (w_1[i] < 1.0) {
            goto *p;
        }
    }

    return 0;
}
========================
$gcc -O3
========================
during RTL pass: dwarf2
dwarf2cfi.cc: In function 'int main()':
dwarf2cfi.cc:17:1: internal compiler error: in create_trace_edges, at
dwarf2cfi.cc:2693
   17 | }
      | ^
0x5da1dc8 internal_error(char const*, ...)
        /workspace/install/gcc/src/gcc/gcc/diagnostic-global-context.cc:517
0x5d3f858 fancy_abort(char const*, int, char const*)
        /workspace/install/gcc/src/gcc/gcc/diagnostic.cc:1749
0x1b1c69c create_trace_edges
        /workspace/install/gcc/src/gcc/gcc/dwarf2cfi.cc:2693
0x1b1d955 scan_trace
        /workspace/install/gcc/src/gcc/gcc/dwarf2cfi.cc:2918
0x1b1db7e create_cfi_notes
        /workspace/install/gcc/src/gcc/gcc/dwarf2cfi.cc:2945
0x1b1f562 execute_dwarf2_frame
        /workspace/install/gcc/src/gcc/gcc/dwarf2cfi.cc:3316
0x1b2100e execute
        /workspace/install/gcc/src/gcc/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.
  • [Bug c/123157] New: ICE:... 522024330006 at smail dot nju.edu.cn via Gcc-bugs

Reply via email to