[Bug middle-end/61486] ICE with #pragma omp teams

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 12 21:14:00 GMT 2014


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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jun 12 21:14:15 2014
New Revision: 211597

URL: http://gcc.gnu.org/viewcvs?rev=211597&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:
    branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/gomp/pr61486-1.c
    branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/gomp/pr61486-2.c
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/c-family/ChangeLog
    branches/gcc-4_9-branch/gcc/c-family/c-omp.c
    branches/gcc-4_9-branch/gcc/gimplify.c
    branches/gcc-4_9-branch/gcc/omp-low.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list