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

            Bug ID: 127011
           Summary: [16/17 Regression] ICE: in fix_up_fall_thru_edges, at
                    bb-reorder.cc:2026 with -O2 -mrtm and
                    __builtin_ia32_xbegin()
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Created attachment 65394
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65394&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O2 -mrtm testcase.c
testcase.c: In function 'foo':
testcase.c:7:1: warning: 'noreturn' function does return
    7 | }
      | ^
during RTL pass: bbpart
testcase.c:7:1: internal compiler error: in fix_up_fall_thru_edges, at
bb-reorder.cc:2026
0x2f0e66d internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xe57aaf fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostics/context.cc:1813
0xcc7d37 fix_up_fall_thru_edges
        /repo/gcc-trunk/gcc/bb-reorder.cc:2026
0xcc7d37 execute
        /repo/gcc-trunk/gcc/bb-reorder.cc:3020
0xcc7d37 execute
        /repo/gcc-trunk/gcc/bb-reorder.cc:2997
/repo/gcc-trunk/binary-trunk-20260820103148-g579349b0f12-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/cc1
-quiet -iprefix
/repo/gcc-trunk/binary-trunk-20260820103148-g579349b0f12-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../lib/gcc/x86_64-pc-linux-gnu/17.0.0/
testcase.c -quiet -dumpdir a- -dumpbase testcase.c -dumpbase-ext .c -mrtm
-mtune=generic -march=x86-64 -O2 -o /tmp/cc15HT0T.s
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