This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/44536] OMP: missing error with default(none)



------- Comment #3 from jakub at gcc dot gnu dot org  2010-06-15 12:27 -------
Subject: Bug 44536

Author: jakub
Date: Tue Jun 15 12:27:01 2010
New Revision: 160783

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160783
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_4-branch/gcc/testsuite/gfortran.dg/gomp/pr44536.f90
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/fortran/ChangeLog
    branches/gcc-4_4-branch/gcc/fortran/f95-lang.c
    branches/gcc-4_4-branch/gcc/fortran/trans-openmp.c
    branches/gcc-4_4-branch/gcc/fortran/trans.h
    branches/gcc-4_4-branch/gcc/gimplify.c
    branches/gcc-4_4-branch/gcc/langhooks-def.h
    branches/gcc-4_4-branch/gcc/langhooks.h
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/gomp/sharing-3.f90


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44536


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]