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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Jun 15 07:09:04 2019
New Revision: 272322

URL: https://gcc.gnu.org/viewcvs?rev=272322&root=gcc&view=rev
Log:
        PR middle-end/90779
        * gimplify.c: Include omp-offload.h and context.h.
        (gimplify_bind_expr): Add "omp declare target" attributes
        to static block scope variables inside of target region or target
        functions.

        * c-c++-common/goacc/routine-5.c (func2): Don't expect error for
        static block scope variable in #pragma acc routine.

        * testsuite/libgomp.c/pr90779.c: New test.
        * testsuite/libgomp.fortran/pr90779.f90: New test.

Added:
    trunk/libgomp/testsuite/libgomp.c/pr90779.c
    trunk/libgomp/testsuite/libgomp.fortran/pr90779.f90
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/goacc/routine-5.c
    trunk/libgomp/ChangeLog

Reply via email to