c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses are to be removed...
authorJakub Jelinek <jakub@redhat.com>
Wed, 8 Jul 2015 20:29:26 +0000 (22:29 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 8 Jul 2015 20:29:26 +0000 (22:29 +0200)
commitb03b462f1ffdef448aa666d8079cd047bcddee77
treec4559f09b52e8af65fdf825d118170fc012ae9c9
parent7b841a1252c610d817f1ea0fba140834e5443e7f
c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses are to be removed, return NULL rather than original clauses list.

* c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
are to be removed, return NULL rather than original clauses list.

* decl.c (grokfndecl): Handle flag_openmp_simd like flag_openmp.
* pt.c (apply_late_template_attributes): Likewise.

* g++.dg/vect/vect.exp: Run also simd* tests.
* gcc.dg/vect/tree-vect.h (abort, exit): For C++ use extern "C".
(check_vect): Fix up get_cpuid call for C++.
* g++.dg/vect/simd-clone-1.cc: New test.

From-SVN: r225583
gcc/c-family/ChangeLog
gcc/c-family/c-omp.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/vect/simd-clone-1.cc [new file with mode: 0644]
gcc/testsuite/g++.dg/vect/vect.exp
gcc/testsuite/gcc.dg/vect/tree-vect.h