Fix oacc kernels default mapping for scalars
authorTom de Vries <tom@codesourcery.com>
Wed, 2 Dec 2015 15:48:45 +0000 (15:48 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 2 Dec 2015 15:48:45 +0000 (15:48 +0000)
commitdb0f1c7a906bd8798a4016c1622f5999897e7469
tree2109ec421b66624aa21cc5439979c233fc5ae881
parent86938de6f646b403fe6a2eaea3aac9f4e91224fd
Fix oacc kernels default mapping for scalars

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

* gimplify.c (enum gimplify_omp_var_data): Add enum value
GOVD_MAP_FORCE.
(oacc_default_clause): Fix default for scalars in oacc kernels.
(gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.

* c-c++-common/goacc/kernels-default-2.c: New test.
* c-c++-common/goacc/kernels-default.c: New test.

From-SVN: r231183
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/kernels-default-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/goacc/kernels-default.c [new file with mode: 0644]