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: [gfortran] Fix PR 20178: Implement g77 / f2c calling conventions


Paul Brook wrote:

On Saturday 05 March 2005 15:32, Tobias Schlüter wrote:

Until I mentioned it on the mailing list, noone had complained that we
didn't implement a calling convention compatible with g77.  Unfortunately,
people seem to care, so I implemented it.

The g77 calling convention requires two things for function results that we
didn't do:
- scalar COMPLEX functions return via a hidden argument
- default REAL functions return a C double

I implemented this, but it is currently only enabled via a command-line
option.  If we decide that this is the right way, I propose making
-fno-second-underscore the default also, as compatibility with g77 will
then not be required for this either.

I vote for keeping the current default, and leaving -ff2c as an option. I'm sure we will get complaints whatever we choose, so we may as well choose the most efficient option. (assuming a sane C abi for that particular target of course ;-)

Ditto over here and please make -fno-second-underscore the default !


As long as people have the means (by specifying compile time options) to get the behaviour they want, we should choose the most efficient / straightforward option as the default.

--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
A maintainer of GNU Fortran 95: http://gcc.gnu.org/fortran/


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