https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118973
Bug ID: 118973 Summary: [15 regression] ICE when building glog-0.6.0 (single_succ_edge, at basic-block.h:332) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 60554 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60554&action=edit logging_unittest.cc.ii.xz ``` $ g++ -O2 -c ./CMakeFiles/logging_unittest.dir/src/logging_unittest.cc.ii during GIMPLE pass: local-fnsummary /var/tmp/portage/dev-cpp/glog-0.6.0/work/glog-0.6.0/src/logging_unittest.cc: In member function ‘virtual void DeathNoAllocNewHook_logging_Test::TestBody()’: /var/tmp/portage/dev-cpp/glog-0.6.0/work/glog-0.6.0/src/logging_unittest.cc:1484:1: internal compiler error: in single_succ_edge, at basic-block.h:332 1484 | } | ^ 0x5e81b6a8e901 internal_error(char const*, ...) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:517 0x5e81b6a8ea9c fancy_abort(char const*, int, char const*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic.cc:1722 0x5e81b52a4822 single_succ_edge(basic_block_def const*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/basic-block.h:332 0x5e81b6eec986 builtin_unreachable_bb_p /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-fnsummary.cc:2711 0x5e81b6eec986 guards_builtin_unreachable /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-fnsummary.cc:2733 0x5e81b6eec986 find_necessary_statements /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-fnsummary.cc:2808 0x5e81b6ecdf88 analyze_function_body /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-fnsummary.cc:2934 0x5e81b6ebd262 compute_fn_summary(cgraph_node*, bool) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-fnsummary.cc:3476 0x5e81b6ee3ce9 compute_fn_summary_for_current /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-fnsummary.cc:3506 0x5e81b6ee3ce9 execute /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-fnsummary.cc:5161 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=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/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-15.0.9999/work/gcc-15.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/15 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python --enable-objc-gc --enable-languages=c,c++,d,go,objc,obj-c++,fortran,ada,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 15.0.9999 p, commit 2f960908caaad18d54ce7cb764ac470656e664c4' --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 --disable-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-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.1 20250220 (experimental) d7ff3142821bd114ba925cb5a3778d973fe5335e (Gentoo Hardened 15.0.9999 p, commit 2f960908caaad18d54ce7cb764ac470656e664c4) ```