r211931 - in /branches/gcc-4_9-branch: gcc/Chan...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Tue Jun 24 08:05:00 GMT 2014
Author: jakub
Date: Tue Jun 24 08:05:13 2014
New Revision: 211931
URL: https://gcc.gnu.org/viewcvs?rev=211931&root=gcc&view=rev
Log:
* 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.
Added:
branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c++/simd10.C
branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c++/simd11.C
branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c++/simd12.C
branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c++/simd13.C
branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c/simd-14.c
branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c/simd-15.c
branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c/simd-16.c
branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c/simd-17.c
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/c/ChangeLog
branches/gcc-4_9-branch/gcc/c/c-parser.c
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/parser.c
branches/gcc-4_9-branch/gcc/gimplify.c
branches/gcc-4_9-branch/gcc/omp-low.c
branches/gcc-4_9-branch/libgomp/ChangeLog
branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c++/for-10.C
branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c/for-2.c
branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c/for-2.h
More information about the Gcc-cvs
mailing list