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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jun 12 21:10:11 2014
New Revision: 211596

URL: http://gcc.gnu.org/viewcvs?rev=211596&root=gcc&view=rev
Log:
    PR middle-end/61486
    * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
    (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
    if outer combined construct is distribute.
    (gimplify_omp_for): For OMP_DISTRIBUTE set
    gimplify_omp_ctxp->distribute.
    * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
    GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
    mapping into decl map.
c-family/
    * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
    #pragma omp target teams or
    #pragma omp {,target }teams distribute simd.
testsuite/
    * c-c++-common/gomp/pr61486-1.c: New test.
    * c-c++-common/gomp/pr61486-2.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/gomp/pr61486-1.c
    trunk/gcc/testsuite/c-c++-common/gomp/pr61486-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-omp.c
    trunk/gcc/gimplify.c
    trunk/gcc/omp-low.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to