]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa/122456 - fix ICE during LTO profiledbootstrap
authorRichard Biener <rguenther@suse.de>
Mon, 8 Dec 2025 09:25:21 +0000 (10:25 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 16 Dec 2025 07:30:43 +0000 (08:30 +0100)
commit3dfd545671f0b3ffb2bd5166637381665fea7ebb
tree181095d825530d4a7f9ec0e89da9a28c6fb04841
parent1dc8df6def07a924bdbb9741f8de30fbd7f3326a
ipa/122456 - fix ICE during LTO profiledbootstrap

When we have a speculated edge but we folded the call to
__builtin_unreachable () then trying to update the cgraph ICEs
in resolve_speculation because there's no symtab node for
__builtin_unreachable (). Reject this resolving attempt similar
as to when the callees decl were NULL or it were not semantically
equivalent.

I only have a LTRANS unit as testcase.

PR ipa/122456
* cgraph.cc (cgraph_edge::resolve_speculation): Handle
a NULL symtab_node::get (callee_decl).
gcc/cgraph.cc