OSDN Git Service

2011-12-11 Thomas Koenig <tkoenig@gcc.gnu.org>
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Dec 2011 17:43:22 +0000 (17:43 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Dec 2011 17:43:22 +0000 (17:43 +0000)
commit5948668b79dab3441bf3b3186916424ce95dd938
tree351adb196039634636b2c08ffb2fd4ff7f846895
parente0960359276b34b63930ceaf2c70d5aec0d400aa
2011-12-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/50690
* frontend-passes.c (in_omp_workshare):  New variable.
(cfe_expr_0):  Don't eliminiate common function if it would put
the variable immediately into a WORKSHARE construct.
(optimize_namespace):  Set in_omp_workshare.
(gfc_code_walker):  Keep track of OMP PARALLEL and OMP WORKSHARE
constructs.

2011-12-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/50690
* gfortran.dg/gomp/workshare2.f90:  New test.
* gfortran.dg/gomp/workshare3.f90:  New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182208 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/workshare2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/workshare3.f90 [new file with mode: 0644]