re PR middle-end/27415 (Iteration var in firstprivate or reduction clauses not reported)
authorJakub Jelinek <jakub@redhat.com>
Wed, 17 May 2006 08:35:01 +0000 (10:35 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 17 May 2006 08:35:01 +0000 (10:35 +0200)
commit761041be912de3a0344a507dbb718a49a9c19434
tree7de49861b990eff224e646e29a3ad1dd59004468
parent3c5cbea7a14ac6b674443a6d3e0865a696af18ce
re PR middle-end/27415 (Iteration var in firstprivate or reduction clauses not reported)

PR middle-end/27415
* tree.h (OMP_PARALLEL_COMBINED): Define.
* gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
(new_omp_context): Add is_combined_parallel argument.
(gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
new_omp_context caller.
(gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
Adjust gimplify_scan_omp_clauses callers.
(omp_is_private): Issue errors if iteration variable is firstprivate
or reduction in the current context.
* c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
on combined parallel workshare constructs.
cp/
* parser.c (cp_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
on combined parallel workshare constructs.
* pt.c (tsubst_expr): Copy OMP_PARALLEL_COMBINED flag.
fortran/
* trans-openmp.c (gfc_trans_omp_parallel_do,
gfc_trans_omp_parallel_sections, gfc_trans_omp_parallel_workshare): Set
OMP_PARALLEL_COMBINED flag.
testsuite/
* gcc.dg/gomp/pr27415.c: New test.
* g++.dg/gomp/pr27415.C: New test.

From-SVN: r113846
12 files changed:
gcc/ChangeLog
gcc/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr27415.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/pr27415.c [new file with mode: 0644]
gcc/tree.h