[Bug libfortran/27740] libgfortran should use versioned symbols

fxcoudert at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Oct 29 14:20:00 GMT 2006



------- Comment #5 from fxcoudert at gcc dot gnu dot org  2006-10-29 14:19 -------
Hi Janne,

As we've discussed on IRC, the inclusion of the ISO_C_BINDING patch is still
uncertain. For other work (implementation of the IEEE intrinsic modules), I've
felt the need to add an option to gfortran that allows symbol names to begin
with an underscore. With it, we can achieve namespace separation of all
external symbols in libgfortran without waiting for ISO_C_BINDING. So, the
patch I propose here:
  - adds a new -fallow-leading-underscore option, which is not documented so
that I doesn't get used by users
  - use it during compilation of the Fortran routines in libgfortran
(specifics, f2c_specifics and selected_{real,int}_kind) and add the _gfortran_
prefix to all these symbols.

With this patch, every external symbol in libgfortran will have the _gfortran_
prefix (except, of course, the fallback C99 math functions we provide when
they're not available on the system). Does that sound OK to you? Is that enough
so that you can update your versioned symbols patch? (I think, the sooner it
goes in, the better)


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27740



More information about the Gcc-bugs mailing list