re PR fortran/52751 (private module variable are not exported as local)
authorTobias Burnus <burnus@net-b.de>
Sun, 8 Apr 2012 07:15:01 +0000 (09:15 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Sun, 8 Apr 2012 07:15:01 +0000 (09:15 +0200)
commit5af6fa0b38c481617551b96f1c82bbf25f2f35c8
tree80a679b42b61006710ce22f8265f8c31de58b1cd
parentaeb9270a9866be202cf3d9036f4f58de6a1de36e
re PR fortran/52751 (private module variable are not exported as local)

2012-04-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52751
        * trans-decl.c (gfc_finish_var_decl): Don't set TREE_PUBLIC
        for PRIVATE module variables without C-binding label.

        PR fortran/40973
        * trans-decl.c (build_function_decl): Ditto for procedures.

2012-04-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40973
        PR fortran/52751
        * gfortran.dg/public_private_module_2.f90: New.

From-SVN: r186223
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/public_private_module_2.f90 [new file with mode: 0644]