https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122575
Bug ID: 122575
Summary: [16 regression] bootstrap-lto fails on
armv7a-unknown-linux-gnueabihf
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: build, ice-on-valid-code, lto
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: sjames at gcc dot gnu.org
Target Milestone: ---
I haven't poked at this at all (including nailing down some minimal way to
reproduce the bootstrap failure), but not seen a bug for it yet, so figured I'd
get it filed.
This is w/ trunk from today:
```
during RTL pass: loop2_doloop
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/config/arm/arm.md:
In function ‘split_2’:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/config/arm/arm.md:6658:1:
internal compiler error: in canon_condition, at loop-iv.cc:1650
6658 | "operands[3] = can_create_pseudo_p () ? gen_reg_rtx (SImode) :
operands[0];"
| ^
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.gentoo.org/> for instructions.
make[4]: *** [/var/tmp/portage/sys-devel/gcc-16.0.9999/temp/ccf4bkpQ.mk:836:
/var/tmp/portage/sys-devel/gcc-16.0.9999/temp/ccKfeyjF.ltrans417.ltrans.o]
Error 1
make[4]: *** Waiting for unfinished jobs....
```
```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/16/lto-wrapper
Target: armv7a-unknown-linux-gnueabihf
Configured with:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/configure
--host=armv7a-unknown-linux-gnueabihf --build=armv7a-unknown-linux-gnueabihf
--prefix=/usr --bindir=/usr/armv7a-unknown-linux-gnueabihf/gcc-bin/16
--includedir=/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/16/include
--datadir=/usr/share/gcc-data/armv7a-unknown-linux-gnueabihf/16
--mandir=/usr/share/gcc-data/armv7a-unknown-linux-gnueabihf/16/man
--infodir=/usr/share/gcc-data/armv7a-unknown-linux-gnueabihf/16/info
--with-gxx-include-dir=/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/16/include/g++-v16
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/armv7a-unknown-linux-gnueabihf/16/python
--enable-libphobos --enable-objc-gc
--enable-languages=c,c++,d,objc,obj-c++,fortran,ada,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 16.0.9999 p, commit
b40afae619f7e54eebfaccd612ca27b0c2c8eb8a' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--disable-multilib --disable-fixed-point --with-float=hard --with-arch=armv7-a
--with-float=hard --with-fpu=vfpv3-d16 --enable-libgomp --disable-libssp
--enable-libada --disable-systemtap --disable-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
--with-build-config='bootstrap-O3 bootstrap-lto'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20250831 (experimental)
af979624128b24303c2e29b3f2535445877056ec (Gentoo 16.0.9999 p, commit
b40afae619f7e54eebfaccd612ca27b0c2c8eb8a)
```