Mark pointers to allocated target vars as restricted, if possible
authorTom de Vries <tom@codesourcery.com>
Wed, 2 Dec 2015 15:48:35 +0000 (15:48 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 2 Dec 2015 15:48:35 +0000 (15:48 +0000)
commit86938de6f646b403fe6a2eaea3aac9f4e91224fd
tree6d7809162ea7754395d66078007d4863354014fa
parent28eca950b760f1e98f0626a441ffd48b8baad153
Mark pointers to allocated target vars as restricted, if possible

2015-12-02  Tom de Vries  <tom@codesourcery.com>

* omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
parameter base_pointers_restrict.
(omp_target_base_pointers_restrict_p): New function.
(scan_omp_target): Call scan_sharing_clauses with base_pointers_restrict
arg.

* c-c++-common/goacc/kernels-alias-2.c: New test.
* c-c++-common/goacc/kernels-alias-3.c: New test.
* c-c++-common/goacc/kernels-alias-4.c: New test.
* c-c++-common/goacc/kernels-alias-5.c: New test.
* c-c++-common/goacc/kernels-alias-6.c: New test.
* c-c++-common/goacc/kernels-alias-7.c: New test.
* c-c++-common/goacc/kernels-alias-8.c: New test.
* c-c++-common/goacc/kernels-alias.c: New test.

From-SVN: r231182
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/kernels-alias-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/goacc/kernels-alias-3.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/goacc/kernels-alias-4.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/goacc/kernels-alias-5.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/goacc/kernels-alias-6.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/goacc/kernels-alias-7.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/goacc/kernels-alias-8.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/goacc/kernels-alias.c [new file with mode: 0644]