gfortran doesn't support visibility.
Ed Smith-Rowland
3dw4rd@verizon.net
Sun Apr 6 03:44:00 GMT 2008
I am forwarding an email I sent about -fvisibility not working for gfortran.
This was marked 35827, a middle end bug. The gist is that only C-family
languages are deemed to support visibility. My issue is that g77
supported visibility and it seems a reasonable notion and a useful thing
to have. It would keep the symbol table lean and prevent users from
calling routines way down where they shouldn't be.
Is there any reason to suppose that gfortran *couldn't* or *shouldn't*
support visibility? Is there a Fortran language supported thing that
would take the place of this?
At least a flag that would mark all methods in a file as having a
specified visibility (i.e. -fvisibility) would help.
I know pragmas and __attribute__ and such are not part of Fortran as
they are in C (hence the reclassification as not a Fortran bug?) but
just the per source file flag would help a lot.
Here is the original report and the response:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35827
Regards,
Ed Smith-Rowland
More information about the Fortran
mailing list