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: stdcall function suffix and -mrtd on Win32


Danny Smith wrote:

2005-04-25 Filip Navara <navaraf@reactos.com>

* config/i386/winnt.c (i386_pe_encode_section_info):
Add stdcall suffix to functions that are implicitly declared
as stdcall when -mrtd option is used.


I don't like this because because it breaks projects (eg, apps that link
against legacy fortran libraries that use stdcall calling convention)
where the suffix is not desired. And what about Pascal objects? Pascal uses
stdcall too, but without suffix.


Right, I completely forgot about that. I was bit confused by the "-mrtd" switch documentation and thought it fits the my purpose.

Why do you think this is necessary?


I need an option that changes the default calling convention to stdcall in similar manner as the MSVC "/Gz" option. It would greatly simplify compiling existing Windows driver code with MinGW.

Rather than change the established meaning of -mrtd, wouldn't a new switch
(with documentation) be preferable?


If you think it's the way to go I can try to make a patch that adds new switch...

Best regards,
Filip



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