[gfortran, patch] Fix -ff2c type mismatches
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Sun Dec 17 19:22:00 GMT 2006
f2c calling conventions require that a scalar default REAL function
actually returns the C type double. Our current implementation makes
the function symbol's backend_decl of type double, which in the case
of no explicit RESULT variable leads to all kinds of type mismatches.
This patch fixes this, by only making the function REAL*8, not the
RESULT variable, and then converting the result variable to REAL*8
when passing it to the function result.
Built and tested on i386-darwin, this passes the testsuite except for
the failures which are due to PR29516. Ok?
Cheers,
- Tobi
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the Fortran
mailing list