https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115951
Bug ID: 115951 Summary: [15 Regression] pgo+lto enabled bootstrap fails building gnat (ICE in fold_stmt, at gimple-range-fold.cc:701) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- seen on the trunk, targeting linux, architecture doesn't matter. probably seen for the first time in early June. this is a pgo+lto enabled bootstrap during GIMPLE pass: vrp ../../src/gcc/ada/bindo-graphs.adb: In function 'bindo__graphs__library_graphs__find_components': ../../src/gcc/ada/bindo-graphs.adb:1842:7: internal compiler error: in fold_stmt, at gimple-range-fold.cc:701 1842 | procedure Find_Components (G : Library_Graph) is | ^ 0x2a56b80 internal_error(char const*, ...) ../../src/gcc/diagnostic-global-context.cc:491 0xdf7f01 fancy_abort(char const*, int, char const*) ../../src/gcc/diagnostic.cc:1725 0xdb4402 fold_using_range::fold_stmt(vrange&, gimple*, fur_source&, tree_node*) ../../src/gcc/gimple-range-fold.cc:701 0x27f71cd gimple_ranger::fold_range_internal(vrange&, gimple*, tree_node*) ../../src/gcc/gimple-range.cc:277 0x27f71cd gimple_ranger::range_of_stmt(vrange&, gimple*, tree_node*) ../../src/gcc/gimple-range.cc:338 0x17edc32 range_query::value_of_stmt(gimple*, tree_node*) ../../src/gcc/value-query.cc:133 0x1652f8f substitute_and_fold_dom_walker::before_dom_children(basic_block_def*) ../../src/gcc/tree-ssa-propagate.cc:824 0x2796e7e dom_walker::walk(basic_block_def*) ../../src/gcc/domwalk.cc:311 0x1651f65 substitute_and_fold_engine::substitute_and_fold(basic_block_def*) ../../src/gcc/tree-ssa-propagate.cc:1007 0x17b1770 execute_ranger_vrp(function*, bool) ../../src/gcc/tree-vrp.cc:1099 0x17b64ee execute ../../src/gcc/tree-vrp.cc:1347 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. make[6]: *** [/tmp/ccCo9h2R.mk:14: /tmp/ccibijV1.ltrans6.ltrans.o] Error 1 lto-wrapper: fatal error: /usr/bin/make returned 2 exit status compilation terminated. /usr/bin/x86_64-linux-gnu-ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make[5]: *** [../../src/gcc/ada/gcc-interface/Make-lang.in:769: gnatbind] Error 1 make[5]: Leaving directory '/<<PKGBUILDDIR>>/build/gcc' make[4]: *** [Makefile:5307: all-stagefeedback-gcc] Error 2 make[4]: Leaving directory '/<<PKGBUILDDIR>>/build' make[3]: *** [Makefile:33241: stagefeedback-bubble] Error 2 make[3]: Leaving directory '/<<PKGBUILDDIR>>/build' make[2]: *** [Makefile:33272: profiledbootstrap-lean] Error 2 configured with --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2,rust --prefix=/usr/lib/gcc-snapshot --with-gcc-major-version-only --program-prefix= --enable-shared --enable-linker-build-id --disable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/<<PKGBUILDDIR>>/debian/tmp-nvptx/usr/lib/gcc-snapshot,amdgcn-amdhsa=/<<PKGBUILDDIR>>/debian/tmp-gcn/usr/lib/gcc-snapshot --enable-offload-defaulted --without-cuda-driver --enable-checking=yes,extra,rtl --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2