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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jun 22 21:25:04 2018
New Revision: 261963

URL: https://gcc.gnu.org/viewcvs?rev=261963&root=gcc&view=rev
Log:
        Backported from mainline
        2018-05-11  Jakub Jelinek  <ja...@redhat.com>

        PR c/85696
        * c-omp.c (c_omp_predetermined_sharing): Return
        OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.

        * c-typeck.c (c_finish_omp_clauses): Don't use
        c_omp_predetermined_sharing, instead just check TREE_READONLY.

        * cp-tree.h (cxx_omp_predetermined_sharing_1): New prototype.
        * cp-gimplify.c (cxx_omp_predetermined_sharing): New wrapper around
        cxx_omp_predetermined_sharing_1.  Rename old function to ...
        (cxx_omp_predetermined_sharing_1): ... this.
        * semantics.c (finish_omp_clauses): Use cxx_omp_predetermined_sharing_1
        instead of cxx_omp_predetermined_sharing.

        * c-c++-common/gomp/pr85696.c: New test.

Modified:
    branches/gcc-7-branch/gcc/c-family/ChangeLog
    branches/gcc-7-branch/gcc/c-family/c-omp.c
    branches/gcc-7-branch/gcc/c/ChangeLog
    branches/gcc-7-branch/gcc/c/c-typeck.c
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/cp-gimplify.c
    branches/gcc-7-branch/gcc/cp/cp-tree.h
    branches/gcc-7-branch/gcc/cp/semantics.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to