> Tested on i686-pc-mingw32, applied on the mainline and 4.7 branch. > > > 2012-05-19 Eric Botcazou <ebotca...@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.
Now reverted, including on the 4.7 branch (this is only for x86/Windows). We have decided to use another approach to deal with the problem as the above one introduces backwards compatibily issues. -- Eric Botcazou