[Patch, Fortran] PR54221 - mark private module vars/procs as TREE_PUBLIC()=0
Tobias Burnus
burnus@net-b.de
Sun Aug 12 08:56:00 GMT 2012
Since April, gfortran no longer marks module procedures/variables as
TREE_PUBLIC, if they are marked as PRIVATE. (-> improved optimization,
reduced file size)
However, as this PR shows, for "PRIVATE" instead of "PRIVATE :: symbol"
this didn't work, which is addressed by the attached patch.
I only included a test case for module variables; for module procedures,
one runs into PR54224.
Build and regtested on x86-64-linux.
OK for the trunk?
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mod-private.diff
Type: text/x-patch
Size: 2611 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120812/81102edc/attachment.bin>
More information about the Fortran
mailing list