c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause with decl that is not...
authorJakub Jelinek <jakub@redhat.com>
Thu, 31 Oct 2013 19:06:08 +0000 (20:06 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 31 Oct 2013 19:06:08 +0000 (20:06 +0100)
commit5a9785fb4c3ceb3b338634f2ea17474eaebb4955
treeb855c0f5f2b49779d10067e2ee590fb7d92a9ef8
parente5ccdfcd51ccbd0c9353f94f73bce18d42adbaac
c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause with decl that is not pointer nor array.

* c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
with decl that is not pointer nor array.

* semantics.c (finish_omp_clauses): Diagnose aligned clause
with decl that is not pointer nor array nor reference to those.

* g++.dg/gomp/simd-1.C: New test.
* g++.dg/gomp/declare-simd-1.C (f32): Fix up aligned clause argument.
* g++.dg/gomp/declare-simd-2.C (fn13, fn14): Add new tests.
* gcc.dg/gomp/declare-simd-2.c (fn7, fn8, fn9, fn10, fn11): Likewise.
* c-c++-common/gomp/simd6.c: New test.

From-SVN: r204273
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/simd6.c [new file with mode: 0644]
gcc/testsuite/g++.dg/gomp/declare-simd-1.C
gcc/testsuite/g++.dg/gomp/declare-simd-2.C
gcc/testsuite/g++.dg/gomp/simd-1.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/declare-simd-2.c