]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgomp/ChangeLog
gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in...
authorJakub Jelinek <jakub@redhat.com>
Tue, 24 Jun 2014 07:53:52 +0000 (09:53 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 24 Jun 2014 07:53:52 +0000 (09:53 +0200)
commit56ad0e3820fa6f21e603e83c6e0908d39915463a
tree8eeccb0956a7e6b8abafc24234634fa3736769cf
parentb46ebd6c7beaf55974973de0f02d39299b733bc9
gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in clauses use private clause if...

* gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
not mentioned in clauses use private clause if the iterator is
declared in #pragma omp for simd, and when adding lastprivate
instead, add it to the outer #pragma omp for too.  Diagnose
if the variable is private in outer context.  For simd collapse > 1
loops, replace all iterators with temporaries.
* omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
same even in collapse > 1 loops.
gcc/c/
* c-parser.c (c_parser_omp_for_loop): For
#pragma omp parallel for simd move lastprivate clause from parallel
to for rather than simd.
gcc/cp/
* parser.c (cp_parser_omp_for_loop): For
#pragma omp parallel for simd move lastprivate clause from parallel
to for rather than simd.
libgomp/
* testsuite/libgomp.c/for-2.c: Define SC to static for
#pragma omp for simd testing.
* testsuite/libgomp.c/for-2.h (SC): Define if not defined.
(N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
SC macro.
* testsuite/libgomp.c/simd-14.c: New test.
* testsuite/libgomp.c/simd-15.c: New test.
* testsuite/libgomp.c/simd-16.c: New test.
* testsuite/libgomp.c/simd-17.c: New test.
* testsuite/libgomp.c++/for-10.C: Define SC to static for
#pragma omp for simd testing.
* testsuite/libgomp.c++/simd10.C: New test.
* testsuite/libgomp.c++/simd11.C: New test.
* testsuite/libgomp.c++/simd12.C: New test.
* testsuite/libgomp.c++/simd13.C: New test.

From-SVN: r211930
19 files changed:
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/gimplify.c
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/for-10.C
libgomp/testsuite/libgomp.c++/simd10.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/simd11.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/simd12.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/simd13.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c/for-2.c
libgomp/testsuite/libgomp.c/for-2.h
libgomp/testsuite/libgomp.c/simd-14.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/simd-15.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/simd-16.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/simd-17.c [new file with mode: 0644]