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

            Bug ID: 117375
           Summary: ICE with -fdiagnostics-details patch in sink pass
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
                CC: qing.zhao at oracle dot com
  Target Milestone: ---

This is with using the RFC/uncommitted patch at
https://inbox.sourceware.org/gcc-patches/20241030141749.4029995-1-qing.z...@oracle.com/,
but it is easier to report here as I have attachments.

```
# gcc -c ./celt/libopus-celt.a.p/celt_encoder.c.i -fdiagnostics-details -O2
during GIMPLE pass: sink
../opus-1.5.2/celt/celt_encoder.c: In function ‘compute_mdcts’:
../opus-1.5.2/celt/celt_encoder.c:461:13: internal compiler error: Segmentation
fault
  461 | static void compute_mdcts(const CELTMode *mode, int shortBlocks,
celt_sig * OPUS_RESTRICT in,
      |             ^~~~~~~~~~~~~
0x55d55e4480d5 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x55d55e30a832 internal_error(char const*, ...)
        ???:0
0x55d55e251be6 set_move_history_to_stmt(gimple*, edge_def*, bool, move_reason)
        ???:0
0x55d55e5c2361 execute_pass_list(function*, opt_pass*)
        ???:0
0x55d55e4e9d69 cgraph_node::expand()
        ???:0
0x55d55e4b1d15 symbol_table::compile()
        ???:0
0x55d55ecece11 symbol_table::finalize_compilation_unit()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
```

Reply via email to