https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68331
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Thu Dec 10 09:41:08 2015 New Revision: 231498 URL: https://gcc.gnu.org/viewcvs?rev=231498&root=gcc&view=rev Log: 2015-12-10 Richard Biener <rguent...@suse.de> PR ipa/68331 * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl parameter and make vars_contains_nonlocal properly have function-scope semantics in IPA mode. (find_what_var_points_to): Add fndecl parameter. (find_what_p_points_to): Likewise. (pt_solution_includes_global): Remove IPA PTA early out. (compute_points_to_sets): Adjust. (ipa_pta_execute): Likewise. Clear final_solutions after each function. * gcc.dg/torture/ipa-pta-3.c: New testcase. * g++.dg/ipa/ipa-pta-1.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/ipa/ipa-pta-1.C trunk/gcc/testsuite/gcc.dg/torture/ipa-pta-3.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-structalias.c