This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran,patch] Add -fmodule-private option (PR 31629)
- From: Paul Thomas <paulthomas2 at wanadoo dot fr>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: GNU Fortran <fortran at gcc dot gnu dot org>, gcc-patches list <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 10 Aug 2007 07:46:34 +0200
- Subject: Re: [gfortran,patch] Add -fmodule-private option (PR 31629)
- References: <A9B43069-A61F-42D2-B809-964B858A0B4A@gmail.com>
FX,
:REVIEWMAIL:
OK
Thanks
Paul
The attached simple patch adds a -fmodule-private option to make
module entities private as default, i.e. when you USE a module and
compile with this option, you cannot refer to any variable that wasn't
explicitly declared as PUBLIC. This is a tool and help for some
people's coding style.
It's very simple as the code was already factored nicely, so it's in
fact a one-liner (plus option-handling stuff, documentation and
testcase). Bootstrapped and regtested on x86_64-linux, OK to commit?
FX
:ADDPATCH fortran: