https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70626

--- Comment #6 from cesar at gcc dot gnu.org ---
Author: cesar
Date: Mon May  9 20:42:47 2016
New Revision: 236049

URL: https://gcc.gnu.org/viewcvs?rev=236049&root=gcc&view=rev
Log:
        Backport trunk r235651:
        2016-04-29  Cesar Philippidis  <ce...@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.


Added:
   
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/combined-reduction.c
    branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/pr70688.c
   
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/combined-reduction.c
   
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-fortran/combined-reduction.f90
Modified:
    branches/gomp-4_0-branch/gcc/c-family/ChangeLog.gomp
    branches/gomp-4_0-branch/gcc/c-family/c-common.h
    branches/gomp-4_0-branch/gcc/c-family/c-omp.c
    branches/gomp-4_0-branch/gcc/c/ChangeLog.gomp
    branches/gomp-4_0-branch/gcc/c/c-parser.c
    branches/gomp-4_0-branch/gcc/cp/ChangeLog.gomp
    branches/gomp-4_0-branch/gcc/cp/parser.c
    branches/gomp-4_0-branch/gcc/cp/semantics.c
    branches/gomp-4_0-branch/gcc/fortran/ChangeLog.gomp
    branches/gomp-4_0-branch/gcc/fortran/gfortran.h
    branches/gomp-4_0-branch/gcc/fortran/match.c
    branches/gomp-4_0-branch/gcc/fortran/trans-openmp.c
    branches/gomp-4_0-branch/gcc/testsuite/ChangeLog.gomp
   
branches/gomp-4_0-branch/gcc/testsuite/gfortran.dg/goacc/combined-directives.f90
    branches/gomp-4_0-branch/gcc/testsuite/gfortran.dg/goacc/reduction-2.f95
   
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c++/template-reduction.C

Reply via email to