From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 677333858C53; Sun, 12 May 2024 19:11:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 677333858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715541116; bh=196x0TRK85BY4T/ZzecE+MZigHipOgbska1bibM9iiU=; h=From:To:Subject:Date:From; b=NMX/Dog0IkgM3do0TSxKYzS4CHqNzSm8A/hDW+s5TsOBJN1k4LyJ/ALbvhB9V6a1Q 2AtFTPYqJw4iKWiOq4JtK/tBQ8d271mER5yoVMCLp8jQ8xg94hjfOyRLXg6jj6SJOB t+Q81V3XxYYgELANOU/U9XJO3to8YbnI9hPbHfhM= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/115051] New: ICE: RTL check: expected elt 2 type 'B', have '0' (rtx barrier) in BLOCK_FOR_INSN, at rtl.h:1495 with -O -finstrument-functions-once -finline-stringops -fprofile-use Date: Sun, 12 May 2024 19:11:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115051 Bug ID: 115051 Summary: ICE: RTL check: expected elt 2 type 'B', have '0' (rtx barrier) in BLOCK_FOR_INSN, at rtl.h:1495 with -O -finstrument-functions-once -finline-stringops -fprofile-use Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-invalid-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 58184 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58184&action=3Dedit reduced testcase (from pr100519.c) Compiler output: $ aarch64-unknown-linux-gnu-gcc -O -finstrument-functions-once -finline-stringops -fprofile-use testcase.c -w during RTL pass: expand testcase.c: In function 'foo': testcase.c:11:1: internal compiler error: RTL check: expected elt 2 type 'B= ', have '0' (rtx barrier) in BLOCK_FOR_INSN, at rtl.h:1495 11 | } | ^ 0x864446 rtl_check_failed_type1(rtx_def const*, int, int, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl.cc:751 0x7b242f BLOCK_FOR_INSN(rtx_def*) /repo/gcc-trunk/gcc/rtl.h:1495 0x7b5d1c BLOCK_FOR_INSN(rtx_def*) /repo/gcc-trunk/gcc/emit-rtl.cc:4384 0x7b5d1c set_block_for_insn(rtx_insn*, basic_block_def*) /repo/gcc-trunk/gcc/rtl.h:1500 0x7b5d1c add_insn_before(rtx_insn*, rtx_insn*, basic_block_def*) /repo/gcc-trunk/gcc/emit-rtl.cc:4379 0xeaf750 emit_pattern_before_noloc /repo/gcc-trunk/gcc/emit-rtl.cc:4647 0xdd034d commit_one_edge_insertion(edge_def*) /repo/gcc-trunk/gcc/cfgrtl.cc:2106 0xdd5671 commit_edge_insertions() /repo/gcc-trunk/gcc/cfgrtl.cc:2168 0xdb5b4b execute /repo/gcc-trunk/gcc/cfgexpand.cc:6959 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. $ aarch64-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-lin= ux-gnu-gcc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r15-380-20240511175912-g= 1b0919cd147-checking-yes-rtl-df-extra-nobootstrap-aarch64/bin/../libexec/gc= c/aarch64-unknown-linux-gnu/15.0.0/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --with-sysroot=3D/usr/aarch64-unknown-linux-gnu --build=3Dx86_64-pc-linux-g= nu --host=3Dx86_64-pc-linux-gnu --target=3Daarch64-unknown-linux-gnu --with-ld=3D/usr/bin/aarch64-unknown-linux-gnu-ld --with-as=3D/usr/bin/aarch64-unknown-linux-gnu-as --enable-libsanitizer --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r15-380-20240511175912-g1b0919cd14= 7-checking-yes-rtl-df-extra-nobootstrap-aarch64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240509 (experimental) (GCC)=