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

            Bug ID: 119133
           Summary: [14/15 Regression] ICE: SIGSEGV in mark_label_nuses
                    (emit-rtl.cc:3896) with -O -fno-tree-ter and _Float16
           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 60663
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60663&action=edit
reduced testcase

Compiler output:
$ aarch64-unknown-linux-gnu-gcc -O -fno-tree-ter testcase.c -wrapper
valgrind,-q
==31823== Invalid read of size 1
==31823==    at 0xF86101: mark_label_nuses(rtx_def*) (emit-rtl.cc:3896)
==31823==    by 0xF86184: mark_label_nuses(rtx_def*) (emit-rtl.cc:3904)
==31823==    by 0xF8D52A: try_split(rtx_def*, rtx_insn*, int)
(emit-rtl.cc:4093)
==31823==    by 0x139BA78: split_insn(rtx_insn*) (recog.cc:3479)
==31823==    by 0x13A3147: split_all_insns() (recog.cc:3583)
==31823==    by 0x13A31F8: (anonymous
namespace)::pass_split_all_insns::execute(function*) (recog.cc:4507)
==31823==    by 0x130F427: execute_one_pass(opt_pass*) (passes.cc:2659)
==31823==    by 0x130FCCF: execute_pass_list_1(opt_pass*) (passes.cc:2768)
==31823==    by 0x130FCE1: execute_pass_list_1(opt_pass*) (passes.cc:2769)
==31823==    by 0x130FD08: execute_pass_list(function*, opt_pass*)
(passes.cc:2779)
==31823==    by 0xED2E98: expand (cgraphunit.cc:1859)
==31823==    by 0xED2E98: cgraph_node::expand() (cgraphunit.cc:1812)
==31823==    by 0xED4C9A: expand_all_functions (cgraphunit.cc:2042)
==31823==    by 0xED4C9A: symbol_table::compile() [clone .part.0]
(cgraphunit.cc:2418)
==31823==  Address 0x2 is not stack'd, malloc'd or (recently) free'd
==31823== 
during RTL pass: split1
testcase.c: In function 'foo':
testcase.c:7:1: internal compiler error: Segmentation fault
    7 | }
      | ^
0x282e921 internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517
0x1462dcf crash_signal
        /repo/gcc-trunk/gcc/toplev.cc:322
0xf86101 mark_label_nuses
        /repo/gcc-trunk/gcc/emit-rtl.cc:3896
0xf86184 mark_label_nuses
        /repo/gcc-trunk/gcc/emit-rtl.cc:3904
0xf8d52a try_split(rtx_def*, rtx_insn*, int)
        /repo/gcc-trunk/gcc/emit-rtl.cc:4093
0x139ba78 split_insn
        /repo/gcc-trunk/gcc/recog.cc:3479
0x13a3147 split_all_insns()
        /repo/gcc-trunk/gcc/recog.cc:3583
0x13a31f8 execute
        /repo/gcc-trunk/gcc/recog.cc:4507
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-20250305175918-r15-7838-g24ea4539300d49-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/15.0.1/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-20250305175918-r15-7838-g24ea4539300d49-checking-yes-rtl-df-extra-aarch64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.1 20250305 (experimental) (GCC)

Reply via email to