Fix GOMP/GOACC_parallel optimization in ipa-pta
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Feb 2016 08:52:26 +0000 (08:52 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Feb 2016 08:52:26 +0000 (08:52 +0000)
commitb53e0a91eff231f3bddd30cd9c457396451030e4
treea53640e73561f39233aab57200e2532f657e2423
parentd4d3da7ecf4b90e560a5dd3c8fca0a42b7dc569a
Fix GOMP/GOACC_parallel optimization in ipa-pta

2016-02-09  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/69599
* tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
function.
(find_func_aliases_for_builtin_call, find_func_clobbers)
(ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
partition.

* testsuite/libgomp.c/omp-nested-3.c: New test.
* testsuite/libgomp.c/pr46032-2.c: New test.
* testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
* testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233240 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-structalias.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/omp-nested-3.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/pr46032-2.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-2.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-2.c [new file with mode: 0644]