This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ping][patch] update handling of 'acc parallel loop' reductions for PR70626


On Thu, Apr 28, 2016 at 03:49:13PM -0700, Cesar Philippidis wrote:
> 2016-04-15  Cesar Philippidis  <cesar@codesourcery.com>
> 
> 	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.

LGTM.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]