[Ada] Use C++-compatible calling convention on x86/Windows
Eric Botcazou
ebotcazou@adacore.com
Sat May 19 09:34:00 GMT 2012
This changes the calling convention of primitive operations on x86/Windows (the
equivalent of C++ methods) in order to be compatible with C++, which changed
the calling convention in order to be compatible with MSVC++.
Tested on i686-pc-mingw32, applied on the mainline and 4.7 branch.
2012-05-19 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
(gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the thiscall
calling convention
(get_minimal_subprog_decl): Likewise.
(gnat_first_param_is_class): New predicate.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 5385 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120519/7090a915/attachment.bin>
More information about the Gcc-patches
mailing list