This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: stdcall function suffix and -mrtd on Win32
- From: Filip Navara <navaraf at reactos dot com>
- To: dannysmith at users dot sourceforge dot net
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 30 Apr 2005 07:03:01 +0200
- Subject: Re: stdcall function suffix and -mrtd on Win32
- References: <20050426041250.77766.qmail@web50905.mail.yahoo.com>
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