]> git.ipfire.org Git - thirdparty/gcc.git/commit - boehm-gc/Makefile.in
tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
authorJakub Jelinek <jakub@redhat.com>
Thu, 24 Apr 2014 21:17:32 +0000 (23:17 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 24 Apr 2014 21:17:32 +0000 (23:17 +0200)
commitf7468577f88cbfe33e0a5e9a2104a32f7e45c44f
tree58c72224fbdd8cfd29b26acb0ed228ad9bf56b58
parent2f7ac5ce576962dc7610d8cb3e0b107b05d77bbf
tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.

* tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
* gimplify.c (omp_is_private): Change last argument's type to int.
Only diagnose lastprivate if the simd argument is 1, only diagnose
linear if the simd argument is 2.
(gimplify_omp_for): Adjust omp_is_private callers.  When adding
lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
* omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
* tree-nested.c (convert_nonlocal_omp_clauses,
convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.

* testsuite/libgomp.c/simd-7.c: New test.
* testsuite/libgomp.c/simd-8.c: New test.
* testsuite/libgomp.c/simd-9.c: New test.
* testsuite/libgomp.c/loop-16.c: New test.

From-SVN: r209760
23 files changed:
boehm-gc/ChangeLog
boehm-gc/Makefile.am
boehm-gc/Makefile.in
boehm-gc/include/Makefile.am
boehm-gc/include/Makefile.in
boehm-gc/testsuite/Makefile.am
boehm-gc/testsuite/Makefile.in
gcc/ChangeLog
gcc/gimplify.c
gcc/omp-low.c
gcc/tree-nested.c
gcc/tree.h
libffi/ChangeLog
libffi/Makefile.in
libffi/configure.ac
libffi/include/Makefile.in
libffi/man/Makefile.in
libffi/testsuite/Makefile.in
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/loop-16.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/simd-7.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/simd-8.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/simd-9.c [new file with mode: 0644]