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

            Bug ID: 121607
           Summary: [16 regression] ICE when building binutils-libs-2.45
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: ice-checking, ice-on-valid-code, lto
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
                CC: hjl.tools at gmail dot com
  Target Milestone: ---

I only saw this when building our binutils-libs (split out package for
libiberty etc), not binutils itself, or I would've noticed it sooner. I was
testing the new patches as they came, so it's a shame this didn't show up
sooner.

```
$ gcc -c -O2 -flto -fno-semantic-interposition -fPIC bfd.i -o bfd.o
$ gcc -c -O2 -flto -fno-semantic-interposition -fPIC pdp11.i -o pdp11.o
$ gcc -shared -O2 -flto -fPIC bfd.o pdp11.o -o /dev/null
In function 'translate_to_native_sym_flags':
lto1: note: the ABI of passing struct with a flexible array member has changed
in GCC 4.4
pdp11.i: In function 'aout_16_write_syms':
pdp11.i:32:19: warning: writing 1 byte into a region of size 0
[-Wstringop-overflow=]
   32 |       *nsp.e_ovly = 0;
      |                   ^
pdp11.i:17:8: note: destination object 'e_ovly' of size 0
   17 |   char e_ovly[]
      |        ^
pdp11.i:37:1: error: NOTE_INSN_BASIC_BLOCK is missing for block 3
   37 | }
      | ^
pdp11.i:37:1: error: NOTE_INSN_BASIC_BLOCK 79 in middle of basic block 3
during RTL pass: x86_cse
pdp11.i:37:1: internal compiler error: verify_flow_info failed
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.gentoo.org/> for instructions.
lto-wrapper: fatal error: x86_64-pc-linux-gnu-gcc returned 1 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/16/../../../../x86_64-pc-linux-gnu/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
```

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/16/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/16
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include/g++-v16
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/16/python
--enable-libphobos --enable-objc-gc
--enable-languages=c,c++,d,objc,obj-c++,fortran,ada,cobol,m2,rust
--enable-obsolete --enable-secureplt --disable-werror --with-system-zlib
--enable-nls --without-included-gettext --disable-libunwind-exceptions
--enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo Hardened 16.0.9999 p, commit
d7e4a6ed7dbaa9482ef38b686c1f886f8a1289a0' --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-offload-defaulted
--enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp
--enable-libada --disable-cet --enable-systemtap --enable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --with-isl
--disable-isl-version-check --enable-default-pie --enable-host-pie
--enable-host-bind-now --enable-default-ssp --disable-fixincludes
--with-gxx-libcxx-include-dir=/usr/include/c++/v1 --enable-linker-build-id
--with-build-config='bootstrap-O3 bootstrap-lto'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20250819 (experimental)
6ece2d7274059265468833fb491db44bd90de72a (Gentoo Hardened 16.0.9999 p, commit
d7e4a6ed7dbaa9482ef38b686c1f886f8a1289a0)
```

Reply via email to