ipa/94947 - avoid using externally_visible_p ()
authorRichard Biener <rguenther@suse.de>
Thu, 7 May 2020 12:06:02 +0000 (14:06 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 7 May 2020 17:42:22 +0000 (19:42 +0200)
commitb9250b3cb91b667cd67943e0fac94bf39ac089a8
tree9c448d66b0577eab987e489d692992112385dd57
parentf8a4141bae53f9125d374e5873dcda3f75392f1f
ipa/94947 - avoid using externally_visible_p ()

externally_visible_p wasn't the correct predicate to use (even if it
worked), instead we should use DECL_EXTERNAL || TREE_PUBLIC.

2020-05-07  Richard Biener  <rguenther@suse.de>

PR ipa/94947
* tree-ssa-structalias.c (refered_from_nonlocal_fn): Use
DECL_EXTERNAL || TREE_PUBLIC instead of externally_visible.
(refered_from_nonlocal_var): Likewise.
(ipa_pta_execute): Likewise.
gcc/ChangeLog
gcc/tree-ssa-structalias.c