r235651 - in /trunk: gcc/c-family/ChangeLog gcc...
cesar@gcc.gnu.org
cesar@gcc.gnu.org
Fri Apr 29 17:42:00 GMT 2016
Author: cesar
Date: Fri Apr 29 17:42:04 2016
New Revision: 235651
URL: https://gcc.gnu.org/viewcvs?rev=235651&root=gcc&view=rev
Log:
gcc/c-family/
PR middle-end/70626
* c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
* c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
reduction clauses in acc parallel loops.
gcc/c/
PR middle-end/70626
* c-parser.c (c_parser_oacc_loop): Don't augment mask with
OACC_LOOP_CLAUSE_MASK.
(c_parser_oacc_kernels_parallel): Update call to
c_oacc_split_loop_clauses.
gcc/cp/
PR middle-end/70626
* parser.c (cp_parser_oacc_loop): Don't augment mask with
OACC_LOOP_CLAUSE_MASK.
(cp_parser_oacc_kernels_parallel): Update call to
c_oacc_split_loop_clauses.
gcc/fortran/
PR middle-end/70626
* trans-openmp.c (gfc_trans_oacc_combined_directive): Duplicate
the reduction clause in both parallel and loop directives.
gcc/testsuite/
PR middle-end/70626
* c-c++-common/goacc/combined-reduction.c: New test.
* gfortran.dg/goacc/reduction-2.f95: Add check for kernels reductions.
libgomp/
PR middle-end/70626
* testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
* testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
* testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
Added:
trunk/gcc/testsuite/c-c++-common/goacc/combined-reduction.c
trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/combined-reduction.c
trunk/libgomp/testsuite/libgomp.oacc-fortran/combined-reduction.f90
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.h
trunk/gcc/c-family/c-omp.c
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-parser.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-openmp.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/goacc/reduction-2.f95
trunk/libgomp/ChangeLog
trunk/libgomp/testsuite/libgomp.oacc-c++/template-reduction.C
More information about the Gcc-cvs
mailing list