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]

RE: STDCALL first patch


> In C, is win32 name decoration done automatically for variables that  
> are given the stdcall attribute? (I don't have my win32 machine at  
> hand to check.) If it's not, we could have another attribute, like "! 
> GNU$ ATTRIBUTES STDCALL, DECORATE", to ask for it.

In C, stdcall function names  are automatically mangled with @n suffix
for cygwin and mingw, by code
#define TARGET_MANGLE_DECL_ASSEMBLER_NAME
i386_pe_mangle_decl_assembler_name
Other targets use the default no-op TARGET_MANGLE_DECL_ASSEMBLER_NAME
hook.

I don't know where all this DEC$ ATTRIBUTES stuff is 'officially'
documented but my google came up with this:
http://h21007.www2.hp.com/portal/download/files/unprot/Fortran/docs/lrm/
lrm0586.htm

which would seem to be a reasonable starting point for GNU$ ATTRIBUTES 

Danny
> 
> Thanks,
> FX
> 


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