re PR fortran/50690 (ICE with front end optimization and OMP workshare)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 11 Dec 2011 17:43:22 +0000 (17:43 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 11 Dec 2011 17:43:22 +0000 (17:43 +0000)
commite07e39f6e56373b87d59806a3cce7fc3bcd8c57e
tree351adb196039634636b2c08ffb2fd4ff7f846895
parentbe0c93c5125a61fe670541d8677617a2168e796d
re PR fortran/50690 (ICE with front end optimization and OMP workshare)

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.

From-SVN: r182208
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]