https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94947
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:a68d4b47a6b5b23a5d7ab3b358f559f41568512f commit r10-8142-ga68d4b47a6b5b23a5d7ab3b358f559f41568512f Author: Richard Biener <rguent...@suse.de> Date: Thu May 7 14:06:02 2020 +0200 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 <rguent...@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.