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

            Bug ID: 116927
           Summary: during RTL pass: early_ra: ICE: verify_flow_info
                    failed: missing REG_EH_REGION note at the end of bb 4
                    with fnon-call-exceptions
                    -fharden-control-flow-redundancy
                    -fno-delete-dead-exceptions
           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 59256
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59256&action=edit
reduced testcase

Compiler output:
$ aarch64-unknown-linux-gnu-gcc -Os -fnon-call-exceptions
-fharden-control-flow-redundancy -fno-delete-dead-exceptions testcase.c 
testcase.c: In function 'foo':
testcase.c:5:1: error: missing REG_EH_REGION note at the end of bb 4
    5 | }
      | ^
during RTL pass: early_ra
testcase.c:5:1: internal compiler error: verify_flow_info failed
0x265902e internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517
0xdf950e verify_flow_info()
        /repo/gcc-trunk/gcc/cfghooks.cc:287
0x124da37 execute_function_todo
        /repo/gcc-trunk/gcc/passes.cc:2113
0x124df8e execute_todo
        /repo/gcc-trunk/gcc/passes.cc:2155
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-3987-20241001125221-g60fa7f51c84-checking-yes-rtl-df-extra-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
--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-3987-20241001125221-g60fa7f51c84-checking-yes-rtl-df-extra-aarch64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.0 20241001 (experimental) (GCC)

Reply via email to