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

            Bug ID: 121860
           Summary: [16 Regression] AArch64: Trigger internal error at
                    -O1/O2/O3 during RTL pass: dwarf2
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xxs_chy at outlook dot com
  Target Milestone: ---

Testcase:
#include <stdint.h>
int32_t a;
int32_t b() {
  asm goto("" : : : : c);
  for (; a;) {
    asm("" ::: "x19", "w30");
    asm goto("" : : : : c);
  c:
    asm("" ::: "x28");
  }
}

Output:
during RTL pass: dwarf2
<source>: In function 'b':
<source>:11:1: internal compiler error: in maybe_record_trace_start, at
dwarf2cfi.cc:2591
   11 | }
      | ^

Reproducer: 
https://godbolt.org/z/oT69M1E3G

Seem to be a new bug introduced in trunk. It works well at 15.2.

Reply via email to