https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128226
Bug ID: 128226
Summary: [17 regression] ICE when building kwin-6.8 (in
estimate_edge_size_and_time)
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: ipa
Assignee: unassigned at gcc dot gnu.org
Reporter: sjames at gcc dot gnu.org
CC: jmelcr at gcc dot gnu.org
Target Milestone: ---
```
$ g++ -c gpumanager.cpp.ii -O3 -march=znver5 -mshstk -std=gnu++23
-fno-exceptions
during IPA pass: fnsummary
In file included from
/var/tmp/portage/kde-plasma/kwin-6.8.49.9999/work/kwin-6.8.49.9999/src/core/gpumanager.cpp:400:
/var/tmp/portage/kde-plasma/kwin-6.8.49.9999/work/kwin-6.8.49.9999_build/src/kwin_autogen/include/moc_gpumanager.cpp:
In member function ‘void KWin::GpuManager::handleUdevEvent()’:
/var/tmp/portage/kde-plasma/kwin-6.8.49.9999/work/kwin-6.8.49.9999_build/src/kwin_autogen/include/moc_gpumanager.cpp:155:27:
internal compiler error: Segmentation fault
155 | QT_WARNING_POP
| ^
0x563bc945fc22 internal_error(char const*, ...)
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/diagnostic-global-context.cc:787
0x563bc8b9c969 crash_signal
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/toplev.cc:325
0x7fb58ce438bf ???
/usr/src/debug/sys-libs/glibc-2.44.9999/glibc-2.44.9999/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x563bc7d326e4 estimate_edge_size_and_time
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/ipa-fnsummary.cc:3647
0x563bc7d326e4 summarize_calls_size_and_time
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/ipa-fnsummary.cc:3738
0x563bc99390ac estimate_calls_size_and_time
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/ipa-fnsummary.cc:3820
0x563bc99de505 ipa_update_overall_fn_summary(cgraph_node*, bool)
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/ipa-fnsummary.cc:4665
0x563bc9a22e21 compute_fn_summary(cgraph_node*, bool)
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/ipa-fnsummary.cc:3558
0x563bc99ea8b2 inline_analyze_function(cgraph_node*)
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/ipa-fnsummary.cc:4700
0x563bc97c9980 ipa_fn_summary_generate
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/ipa-fnsummary.cc:4743
0x563bca21db9c execute_ipa_summary_passes(ipa_opt_pass_d*)
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/passes.cc:2287
0x563bc95f2603 ipa_passes
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/cgraphunit.cc:2273
0x563bc95f2603 symbol_table::compile()
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/cgraphunit.cc:2371
0x563bca1fb0bd symbol_table::finalize_compilation_unit()
/usr/src/debug/sys-devel/gcc-17.0.9999/gcc-17.0.9999/gcc/cgraphunit.cc:2630
/usr/libexec/gcc/x86_64-pc-linux-gnu/17/cc1plus -fpreprocessed
gpumanager.cpp.ii -quiet -dumpbase gpumanager.cpp.ii -dumpbase-ext .ii
-march=znver5 -mshstk -mtls-dialect=gnu2 -O3 -std=gnu++23 -fno-exceptions
-foffload-options=-fno-stack-protector -fcf-protection
-foffload-options=-fcf-protection=none -o /tmp/ccPf3cUz.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```
```
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/17/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-17.0.9999/work/gcc-17.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/17
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/17/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/17
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/17/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/17/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/17/include/g++-v17
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/17/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 17.0.9999 p, commit
bddeb646c14925aaa1b0b51f3f5026200b0c8756' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch
--enable-linker-build-id --enable-libada --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --with-tls=gnu2 --enable-multilib
--with-multilib-list=m32,mx32,m64 --disable-fixed-point --with-abi=m64
--enable-targets=all --enable-offload-defaulted
--enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp
--enable-cet --enable-systemtap --disable-valgrind-annotations
--disable-valgrind-interop --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 --with-build-config='bootstrap-O3 bootstrap-lto
bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20261027 (experimental)
a5c6f37e4343b7fee7472f14118af52a7f3a8e48 (Gentoo Hardened 17.0.9999 p, commit
bddeb646c14925aaa1b0b51f3f5026200b0c8756)
```