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

            Bug ID: 104613
           Summary: ICE in dwarf2out_frame_debug_adjust_cfa, at
                    dwarf2cfi.c:1189
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux-gnu
            Target: x86_64-linux-gnu

Fails since -mfunction-return=thunk the option was introduced:

$ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.target/i386/harden-sls-6.c
-m32 -mfunction-return=thunk
during RTL pass: dwarf2
/home/marxin/Programming/gcc/gcc/testsuite/gcc.target/i386/harden-sls-6.c: In
function ‘_Unwind_Resume_or_Rethrow’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.target/i386/harden-sls-6.c:15:1:
internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at
dwarf2cfi.cc:1336
   15 | }
      | ^
0x6d71a1 dwarf2out_frame_debug_adjust_cfa
        /home/marxin/Programming/gcc/gcc/dwarf2cfi.cc:1336
0x6d71a1 dwarf2out_frame_debug
        /home/marxin/Programming/gcc/gcc/dwarf2cfi.cc:2270
0x6d71a1 scan_insn_after
        /home/marxin/Programming/gcc/gcc/dwarf2cfi.cc:2718
0xadb2e0 scan_trace
        /home/marxin/Programming/gcc/gcc/dwarf2cfi.cc:2885
0xadba40 create_cfi_notes
        /home/marxin/Programming/gcc/gcc/dwarf2cfi.cc:2930
0xadba40 execute_dwarf2_frame
        /home/marxin/Programming/gcc/gcc/dwarf2cfi.cc:3301
0xadba40 execute
        /home/marxin/Programming/gcc/gcc/dwarf2cfi.cc:3789
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.

Reply via email to