This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
RFC: GCC$ ATTRIBUTE for intrinsic procedures
- From: Tobias Burnus <burnus at net-b dot de>
- To: gfortran <fortran at gcc dot gnu dot org>
- Date: Sun, 16 Aug 2009 22:01:54 +0200
- Subject: RFC: GCC$ ATTRIBUTE for intrinsic procedures
Hello,
James Van Buskirk played around with GCC$ ATTRIBUTE on Windows, cf.
http://groups.google.com/group/comp.lang.fortran/msg/c5523e2e52c88558
The problem he raised was related to -mrtd. That options sets the
default to STDCALL - except for procedures explicitly marked as CDECL.
For C/C++ that includes the functions from libm as the include files
explicitly contain the CDECL.
However, the functions calls to libgfortran are not explicitly marked as
CDECL. I think it does not make sense to mark them such, but the
question is whether one wants allow marking intrinsics:
intrinsic acos
!gcc$ attributes cdecl :: acos
Or whether we should document something something in the manual.
Tobias