https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115128
Bug ID: 115128 Summary: [15 regression] ICE when building aflplusplus (internal compiler error: in type, at value-range.h:983) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org CC: aldyh at gcc dot gnu.org Target Milestone: --- Created attachment 58221 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58221&action=edit afl-compiler-rt.i.xz ``` $ gcc -c afl-compiler-rt.i -march=znver2 -O3 instrumentation/afl-compiler-rt.o.c:1442:1: warning: constructor priorities from 0 to 100 are reserved for the implementation [-Wprio-ctor-dtor] instrumentation/afl-compiler-rt.o.c:1450:1: warning: constructor priorities from 0 to 100 are reserved for the implementation [-Wprio-ctor-dtor] instrumentation/afl-compiler-rt.o.c:1465:1: warning: constructor priorities from 0 to 100 are reserved for the implementation [-Wprio-ctor-dtor] instrumentation/afl-compiler-rt.o.c:1509:1: warning: constructor priorities from 0 to 100 are reserved for the implementation [-Wprio-ctor-dtor] instrumentation/afl-compiler-rt.o.c: In function ‘__afl_start_forkserver’: instrumentation/afl-compiler-rt.o.c:1161:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] instrumentation/afl-compiler-rt.o.c:1174:11: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] instrumentation/afl-compiler-rt.o.c: In function ‘__afl_start_snapshots’: instrumentation/afl-compiler-rt.o.c:895:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] instrumentation/afl-compiler-rt.o.c:907:11: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] during IPA pass: cp instrumentation/afl-compiler-rt.o.c: At top level: instrumentation/afl-compiler-rt.o.c:2658:1: internal compiler error: in type, at value-range.h:983 0x55dea9caac63 irange::type() const /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/value-range.h:983 0x55deab9da9fe Value_Range::type() /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/value-range.h:777 0x55deab9da9fe propagate_vr_across_jump_function /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-cp.cc:2559 0x55deab9de6b8 propagate_constants_across_call /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-cp.cc:3035 0x55deab9ea2bc propagate_constants_topo /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-cp.cc:3921 0x55deab9ea2bc ipcp_propagate_stage /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-cp.cc:4103 0x55deab9ea2bc ipcp_driver /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-cp.cc:6440 0x55deab9ea2bc execute /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-cp.cc:6515 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 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-languages=c,c++,fortran,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 bc7d81fe2f725b4043ce8b9ffb11d80032ce3f75' --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-libgomp --disable-libssp --disable-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 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240516 (experimental) 556e777298dac8574533935000c57335c5232921 (Gentoo Hardened 15.0.9999 p, commit bc7d81fe2f725b4043ce8b9ffb11d80032ce3f75) ```