re PR ipa/68331 ([meta-bug] fipa-pta issues)
authorRichard Biener <rguenther@suse.de>
Thu, 10 Dec 2015 09:41:08 +0000 (09:41 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 10 Dec 2015 09:41:08 +0000 (09:41 +0000)
commitee7d29b43faf156f55e55dfcb841fa38da2e855a
treed9310279809b94e076740c9f2881ea95cf1aea97
parente53ed9f4c5712c151aadd5fa8891f189d5b9615e
re PR ipa/68331 ([meta-bug] fipa-pta issues)

2015-12-10  Richard Biener  <rguenther@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.

From-SVN: r231498
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/ipa-pta-1.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/ipa-pta-3.c [new file with mode: 0644]
gcc/tree-ssa-structalias.c