------- Comment #1 from jakub at gcc dot gnu dot org 2010-06-15 12:15 ------- Subject: Bug 44536
Author: jakub Date: Tue Jun 15 12:15:26 2010 New Revision: 160779 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160779 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: trunk/gcc/testsuite/gfortran.dg/gomp/pr44536.f90 Modified: trunk/gcc/ChangeLog trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/f95-lang.c trunk/gcc/fortran/trans-openmp.c trunk/gcc/fortran/trans.h trunk/gcc/gimplify.c trunk/gcc/langhooks-def.h trunk/gcc/langhooks.h trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/gomp/sharing-3.f90 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44536