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

            Bug ID: 116436
           Summary: ICE: in cfg_layout_redirect_edge_and_branch_force, at
                    cfgrtl.cc:4748 with -O2 -fmodulo-sched -fprofile-arcs
                    -fgraphite-identity -fvpt
                    -freorder-blocks-and-partition
           Product: gcc
           Version: 15.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: aarch64-unknown-linux-gnu

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

Compiler output:
$ aarch64-unknown-linux-gnu-gcc -O2 -fmodulo-sched -fprofile-arcs
-fgraphite-identity -fvpt -freorder-blocks-and-partition testcase.c
during RTL pass: sms
testcase.c: In function 'foo0':
testcase.c:12:1: internal compiler error: in
cfg_layout_redirect_edge_and_branch_force, at cfgrtl.cc:4748
   12 | }
      | ^
0x25b932e internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:491
0xc3809f fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostic.cc:1772
0x7b6802 cfg_layout_redirect_edge_and_branch_force
        /repo/gcc-trunk/gcc/cfgrtl.cc:4748
0x7b6802 cfg_layout_redirect_edge_and_branch_force
        /repo/gcc-trunk/gcc/cfgrtl.cc:4744
0xdf1663 redirect_edge_and_branch_force(edge_def*, basic_block_def*)
        /repo/gcc-trunk/gcc/cfghooks.cc:508
0xe0572c cfg_layout_split_edge
        /repo/gcc-trunk/gcc/cfgrtl.cc:5008
0xdf199f split_edge(edge_def*)
        /repo/gcc-trunk/gcc/cfghooks.cc:670
0x11629e2 split_edge_and_insert(edge_def*, rtx_insn*)
        /repo/gcc-trunk/gcc/loop-unroll.cc:753
0x245cb52 generate_prolog_epilog
        /repo/gcc-trunk/gcc/modulo-sched.cc:1169
0x245fc86 sms_schedule
        /repo/gcc-trunk/gcc/modulo-sched.cc:1760
0x24606ff execute
        /repo/gcc-trunk/gcc/modulo-sched.cc:3359
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.

$ aarch64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r15-2981-20240818001013-g3ae8794665e-checking-yes-rtl-df-extra-nobootstrap-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/15.0.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --with-cloog --with-ppl --with-isl
--with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu
--with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld
--with-as=/usr/bin/aarch64-unknown-linux-gnu-as --enable-libsanitizer
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r15-2981-20240818001013-g3ae8794665e-checking-yes-rtl-df-extra-nobootstrap-aarch64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.0 20240818 (experimental) (GCC)

Reply via email to