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

            Bug ID: 123320
           Summary: [Trunk] Loongarch64: ICE at -Os during RTL pass:
                    peephole2
           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: ---

Created attachment 63167
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63167&action=edit
test.c

gcc version 16.0.0 20251225 (experimental)
Command:
> loongarch64-unknown-linux-musl-gcc -mlsx -Os test.c
Dump:
during RTL pass: peephole2
a.c: In function 'main':
a.c:152:1: internal compiler error: in gen_reg_rtx, at emit-rtl.cc:1193
  152 | }
      | ^
0x7bd2f3229d8f __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7bd2f3229e3f __libc_start_main_impl
        ../csu/libc-start.c:392
Please submit a full bug report, with preprocessed source (by using -freport-bu
g).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to