This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, libgfortran] PR 27740 Versioned symbols, bump so version


On Wed, May 24, 2006 at 12:16:48AM +0300, Janne Blomqvist wrote:
> 
> > Also, if we're changing the ABI of libgfortran we may as well get it right. 
> > Your map file shows several exported functions that are not prefixed with 
> > _gfortran.
> 
> Yes. Seems many of these functions are implemented in F90, so that's
> why they were left out of this export_proto business. Shouldn't be too
> hard to fix.

The underscore can't appear as the first character in a Fortran
symbol.  So, you would have to compile the F90 to some intermediate
form (perhaps, *.s) and then mangle the names with sed.

> For the remaining cases, find_or_create_unit seems like a genuine
> oversight, _init and _fini are related to the library contructor and
> destructors. Which leaves abort_ and etime_. I have a vague memory
> that these were available for some reason, perhaps related to the
> testsuite? In any case, they are also available as _gfortran_abort and
> _gfortran_etime.

IMNSHO, etime_ was a mistake, which is actually documented in the
source code.  I exposed abort_ because the use of std=f95 in the
testsuite would exclude ABORT(), which maps to _gfortran_abort,
from the list of intrinsics procedures.

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]