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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Aug  1 06:30:26 2019
New Revision: 273965

URL: https://gcc.gnu.org/viewcvs?rev=273965&root=gcc&view=rev
Log:
        Backported from mainline
        2019-07-30  Jakub Jelinek  <ja...@redhat.com>

        PR middle-end/91216
        * omp-low.c (global_nonaddressable_vars): New variable.
        (use_pointer_for_field): For global decls, if they are non-addressable,
        remember it in the global_nonaddressable_vars bitmap, if they are
        addressable and in the global_nonaddressable_vars bitmap, ignore their
        TREE_ADDRESSABLE bit.
        (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
        vars in global_nonaddressable_vars bitmap.
        (execute_lower_omp): Free global_nonaddressable_vars bitmap.

        * gcc.dg/gomp/pr91216.c: New test.

Added:
    branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr91216.c
Modified:
    branches/gcc-9-branch/gcc/ChangeLog
    branches/gcc-9-branch/gcc/omp-low.c
    branches/gcc-9-branch/gcc/testsuite/ChangeLog

Reply via email to