This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/48716] gcc OpenMP static variable declared in scope inside construct is predetermined shared


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48716

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-22 14:10:48 UTC ---
Author: jakub
Date: Fri Apr 22 14:10:45 2011
New Revision: 172859

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172859
Log:
    PR c/48716
    * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
    TREE_STATIC variables declared inside of some OpenMP construct.

    * gcc.dg/gomp/pr48716.c: New test.
    * g++.dg/gomp/pr48716.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/gomp/pr48716.C
    trunk/gcc/testsuite/gcc.dg/gomp/pr48716.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]