This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

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


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