This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r160780 - in /branches/gcc-4_5-branch/gcc: Chan...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 15 Jun 2010 12:17:19 -0000
- Subject: r160780 - in /branches/gcc-4_5-branch/gcc: Chan...
Author: jakub
Date: Tue Jun 15 12:17:16 2010
New Revision: 160780
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160780
Log:
PR fortran/44536
* langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
* langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
(LANG_HOOKS_DECLS): Add it.
* gimplify.c (omp_notice_variable): Call
lang_hooks.decls.omp_report_decl.
* trans-openmp.c (gfc_omp_predetermined_sharing): Don't return
OMP_CLAUSE_DEFAULT_SHARED for artificial vars with
GFC_DECL_SAVED_DESCRIPTOR set.
(gfc_omp_report_decl): New function.
* trans.h (gfc_omp_report_decl): New prototype.
* f95-lang.c (LANG_HOOKS_OMP_REPORT_DECL): Redefine.
* gfortran.dg/gomp/pr44536.f90: New test.
* gfortran.dg/gomp/sharing-3.f90: Remove xfail.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/gomp/pr44536.f90
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/fortran/ChangeLog
branches/gcc-4_5-branch/gcc/fortran/f95-lang.c
branches/gcc-4_5-branch/gcc/fortran/trans-openmp.c
branches/gcc-4_5-branch/gcc/fortran/trans.h
branches/gcc-4_5-branch/gcc/gimplify.c
branches/gcc-4_5-branch/gcc/langhooks-def.h
branches/gcc-4_5-branch/gcc/langhooks.h
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/gomp/sharing-3.f90