public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/112924] New: [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block)
@ 2023-12-08 15:42 csfore at posteo dot net
  2023-12-08 15:51 ` [Bug c/112924] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: csfore at posteo dot net @ 2023-12-08 15:42 UTC (permalink / raw)
  To: gcc-bugs

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

            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=56836&action=edit
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 ‘probe_btrfs’:
reduced.i:16:6: error: gimple_bb (stmt) is set to a wrong basic block
   16 | void probe_btrfs() {
      |      ^~~~~~~~~~~
# .MEM_16 = 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=gcc
COLLECT_LTO_WRAPPER=/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/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/14
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/14/python
--enable-languages=c,c++,fortran,rust --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=yes,extra
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo
14.0.0_pre20231203 p9' --with-gcc-major-version-only --enable-libstdcxx-time
--enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --enable-multilib
--with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all
--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)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c/112924] [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block)
  2023-12-08 15:42 [Bug c/112924] New: [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block) csfore at posteo dot net
@ 2023-12-08 15:51 ` pinskia at gcc dot gnu.org
  2023-12-08 19:09 ` [Bug tree-optimization/112924] " pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-08 15:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This might already be fixed.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/112924] [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block)
  2023-12-08 15:42 [Bug c/112924] New: [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block) csfore at posteo dot net
  2023-12-08 15:51 ` [Bug c/112924] " pinskia at gcc dot gnu.org
@ 2023-12-08 19:09 ` pinskia at gcc dot gnu.org
  2023-12-08 19:12 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-08 19:09 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |tree-optimization
           Keywords|                            |ice-on-valid-code
   Target Milestone|---                         |14.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/112924] [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block)
  2023-12-08 15:42 [Bug c/112924] New: [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block) csfore at posteo dot net
  2023-12-08 15:51 ` [Bug c/112924] " pinskia at gcc dot gnu.org
  2023-12-08 19:09 ` [Bug tree-optimization/112924] " pinskia at gcc dot gnu.org
@ 2023-12-08 19:12 ` pinskia at gcc dot gnu.org
  2023-12-09 14:22 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-08 19:12 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
           Keywords|                            |needs-bisection
   Last reconfirmed|                            |2023-12-08
     Ever confirmed|0                           |1

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I cannot reproduce this.

I suspect this was fixed with r14-6132-g50f2a3370d177f .

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/112924] [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block)
  2023-12-08 15:42 [Bug c/112924] New: [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block) csfore at posteo dot net
                   ` (2 preceding siblings ...)
  2023-12-08 19:12 ` pinskia at gcc dot gnu.org
@ 2023-12-09 14:22 ` jakub at gcc dot gnu.org
  2023-12-09 14:30 ` cvs-commit at gcc dot gnu.org
  2023-12-09 15:55 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-12-09 14:22 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-bisection             |
                 CC|                            |jakub at gcc dot gnu.org
             Status|WAITING                     |NEW

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Indeed, with -O2 -m32 pr112924.c -march=x86-64 this started with r14-6010 and
went away with r14-6132.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/112924] [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block)
  2023-12-08 15:42 [Bug c/112924] New: [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block) csfore at posteo dot net
                   ` (3 preceding siblings ...)
  2023-12-09 14:22 ` jakub at gcc dot gnu.org
@ 2023-12-09 14:30 ` cvs-commit at gcc dot gnu.org
  2023-12-09 15:55 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-12-09 14:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:af8bbd631f5425e9be084dfd1f2b9487a31a350e

commit r14-6359-gaf8bbd631f5425e9be084dfd1f2b9487a31a350e
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Sat Dec 9 15:29:51 2023 +0100

    testsuite: Add testcase for already fixed PR [PR112924]

    This testcase got fixed with
    r14-6132-g50f2a3370d177f8fe9bea0461feb710523e048a2 .
    I'm just adding a testcase so that it doesn't reappear.

    2023-12-09  Jakub Jelinek  <jakub@redhat.com>

            PR tree-optimization/112924
            * gcc.dg/pr112924.c: New test.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/112924] [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block)
  2023-12-08 15:42 [Bug c/112924] New: [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block) csfore at posteo dot net
                   ` (4 preceding siblings ...)
  2023-12-09 14:30 ` cvs-commit at gcc dot gnu.org
@ 2023-12-09 15:55 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-12-09 15:55 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.

*** This bug has been marked as a duplicate of bug 112827 ***

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-12-09 15:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-08 15:42 [Bug c/112924] New: [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block) csfore at posteo dot net
2023-12-08 15:51 ` [Bug c/112924] " pinskia at gcc dot gnu.org
2023-12-08 19:09 ` [Bug tree-optimization/112924] " pinskia at gcc dot gnu.org
2023-12-08 19:12 ` pinskia at gcc dot gnu.org
2023-12-09 14:22 ` jakub at gcc dot gnu.org
2023-12-09 14:30 ` cvs-commit at gcc dot gnu.org
2023-12-09 15:55 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).