re PR fortran/31629 (option to make module entities PRIVATE by default)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 12 Aug 2007 20:19:59 +0000 (20:19 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 12 Aug 2007 20:19:59 +0000 (20:19 +0000)
commit654b60732e6a604471862085f0037fd05df86887
tree412c4a82e24e651226e265eae27b203315512a79
parent5cda5098057c002cf332708f0e5b53bb35d49d76
re PR fortran/31629 (option to make module entities PRIVATE by default)

PR fortran/31629

* lang.opt (-fmodule-private): New option.
* gfortran.h (gfc_option_t): Add flag_module_private member.
* invoke.texi (-fmodule-private): Document the new option.
* module.c (gfc_check_access): Allow the -fmodule-private option
to modify the default behaviour.
* options.c (gfc_init_options): Initialize flag_module_private.
(gfc_handle_option): Handle -fmodule-private.

* gfortran.dg/module_private_1.f90: New test.

From-SVN: r127381
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/invoke.texi
gcc/fortran/lang.opt
gcc/fortran/module.c
gcc/fortran/options.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/module_private_1.f90 [new file with mode: 0644]