[patch, Fortran] Fix PR 50690

Thomas Koenig tkoenig@netcologne.de
Sat Oct 15 10:46:00 GMT 2011


Hello world,

here is a fix for PR 50690, pretty self-explanatory.  Regression-tested.
OK for trunk?

	Thomas


2011-10-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/50690
         * frontend-passes.c (omp_level):  New variable.
         (create_var):  If we are within an OMP block, put
         the variable in the enclosing namespace and set
         the threadprivate attribute.
         (optimize_namespace):  Initialize omp_level.
         (gfc_code_walker):  Keep track of omp level.

2011-10-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/50690
         * gfortran.dg/gomp/workshare2.f90:  New test.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: workshare2.f90
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111015/df6cd199/attachment.f90>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: workshare-2.diff
Type: text/x-patch
Size: 2527 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111015/df6cd199/attachment.bin>


More information about the Gcc-patches mailing list