re PR c/85696 (OpenMP with variably modified and default(none) won't compile)
authorJakub Jelinek <jakub@redhat.com>
Fri, 11 May 2018 07:42:50 +0000 (09:42 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 11 May 2018 07:42:50 +0000 (09:42 +0200)
commit1c9ee609dffac3f7d59ac9b8ca725d3cb9769b61
treee7db792cd4f69d5d1a77de3bd61c59c065d8b2c7
parent5a599c460e3846df80aaabd2b4629544337167ba
re PR c/85696 (OpenMP with variably modified and default(none) won't compile)

PR c/85696
* c-omp.c (c_omp_predetermined_sharing): Return
OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.

* cp-tree.h (cxx_omp_predetermined_sharing_1): New prototype.
* cp-gimplify.c (cxx_omp_predetermined_sharing): New wrapper around
cxx_omp_predetermined_sharing_1.  Rename old function to ...
(cxx_omp_predetermined_sharing_1): ... this.
* semantics.c (finish_omp_clauses): Use cxx_omp_predetermined_sharing_1
instead of cxx_omp_predetermined_sharing.

* c-c++-common/gomp/pr85696.c: New test.

From-SVN: r260156
gcc/c-family/ChangeLog
gcc/c-family/c-omp.c
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/cp/cp-tree.h
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr85696.c [new file with mode: 0644]