From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE5703858CDB; Fri, 8 Dec 2023 15:42:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE5703858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702050178; bh=l9zcmtgObL2HJx0et+VoNK63xbIqYwknvITYhlYtYaU=; h=From:To:Subject:Date:From; b=aSSKfHdi9OX8hccsKSCQf7ztJu7MOO3/neMS9cc1VpG3AzFDnwyQrMQFBI2SP7InM XxJ7FFdrPBNsq9bsc42FrpH9g3hZImBRS7KF2VMp5Z8mauWXGEgAuti1tHDJJI5oE8 SW/Ma1ixuE3oxzjZ4Z4qiPkGPZON8Yx1cq5zXYOA= From: "csfore at posteo dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/112924] New: [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block) Date: Fri, 08 Dec 2023 15:42:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: csfore at posteo dot net 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 bug_severity priority component assigned_to reporter target_milestone 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=3D112924 Bug ID: 112924 Summary: [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block) Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: csfore at posteo dot net Target Milestone: --- Created attachment 56836 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56836&action=3Dedit trimmed file with cvise This originally failed to compile with LTO, but I've reduced it to the following arguments: `gcc -m32 -O2 reduced.i`. It is successful on GCC 13. = The version of util linux this was tested on was 2.39.3. ` reduced.i: In function =E2=80=98probe_btrfs=E2=80=99: reduced.i:16:6: error: gimple_bb (stmt) is set to a wrong basic block 16 | void probe_btrfs() { | ^~~~~~~~~~~ # .MEM_16 =3D VDEF <.MEM_2> __builtin_memcpy (&state, p_9, 16); during GIMPLE pass: sccp reduced.i:16:6: internal compiler error: verify_gimple failed ` gcc -v: Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/x86_64-pc-linux-gnu/14/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-14.0.0_pre20231203/work/gcc-14-20231203/conf= igure --host=3Dx86_64-pc-linux-gnu --build=3Dx86_64-pc-linux-gnu --prefix=3D/usr --bindir=3D/usr/x86_64-pc-linux-gnu/gcc-bin/14 --includedir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/14/include --datadir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14 --mandir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man --infodir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info --with-gxx-include-dir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14 --disable-silent-rules --disable-dependency-tracking --with-python-dir=3D/share/gcc-data/x86_64-pc-linux-gnu/14/python --enable-languages=3Dc,c++,fortran,rust --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=3Dyes,extra --with-bugurl=3Dhttps://bugs.gentoo.org/ --with-pkgversion=3D'Gentoo 14.0.0_pre20231203 p9' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=3Dpos= ix --enable-__cxa_atexit --enable-clocale=3Dgnu --enable-multilib --with-multilib-list=3Dm32,m64 --disable-fixed-point --enable-targets=3Dall --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --without-isl --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231203 (experimental) (Gentoo 14.0.0_pre20231203 p9)=