https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122536
Bug ID: 122536
Summary: [16 regression] ICE when building linux-6.17.7
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: ice-checking, ice-on-valid-code, rtl-checking
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: sjames at gcc dot gnu.org
CC: law at gcc dot gnu.org
Target Milestone: ---
Created attachment 62695
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62695&action=edit
intel_uncore.i.xz
Note this needs RTL checking. Jeff, I've CC'd you as I assume it's the
simplify-rtx change but not bisected yet.
```
$ gcc -c ./drivers/gpu/drm/i915/intel_uncore.i -std=gnu17 -O1
[...]
during RTL pass: combine
/var/tmp/portage/sys-kernel/gentoo-kernel-6.17.7/work/linux-6.17/drivers/gpu/drm/i915/intel_uncore.c:
In function ‘intel_uncore_prune_engine_fw_domains’:
/var/tmp/portage/sys-kernel/gentoo-kernel-6.17.7/work/linux-6.17/drivers/gpu/drm/i915/intel_uncore.c:2608:1:
internal compiler error: RTL check: expected code 'const_int', have 'subreg' in
simplify_binary_operation_1, at simplify-rtx.cc:3692
2608 | }
| ^
```
```
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.notmp/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-languages=c,c++,d,fortran,ada,jit --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
2d46a55f13c74051a9abb3758e4829f20c396561' --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 --enable-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 --disable-fixincludes
--with-gxx-libcxx-include-dir=/usr/include/c++/v1 --enable-host-shared
--enable-libgdiagnostics --enable-linker-build-id
--with-build-config=bootstrap-cet
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251102 (experimental)
6b6696fa3dfc13d26fbb01856757b73df80fe161 (Gentoo Hardened 16.0.9999 p, commit
2d46a55f13c74051a9abb3758e4829f20c396561)
```