]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa/120146 - deal with vanished varpool nodes in IPA PTA
authorRichard Biener <rguenther@suse.de>
Wed, 7 May 2025 08:20:55 +0000 (10:20 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 8 May 2025 07:26:24 +0000 (09:26 +0200)
commitb38e3a7196d25bc8bcb1fe55da7663745cea9470
tree8d97ca885c9488d1b8e241b7b49bae3d7ba1d108
parentaacaa3b13bca508cb6cb803d11cb942b2de8c0db
ipa/120146 - deal with vanished varpool nodes in IPA PTA

I don't understand why they vanish when still refered to, but
lets deal with that in a conservative way.

PR ipa/120146
* tree-ssa-structalias.cc (create_variable_info_for): If
the symtab cannot tell us whether all refs to a variable
are explicit assume they are not.

* g++.dg/ipa/pr120146.C: New testcase.
gcc/testsuite/g++.dg/ipa/pr120146.C [new file with mode: 0644]
gcc/tree-ssa-structalias.cc