Function attributes and x32, x64
Jonathan Wakely
jwakely.gcc@gmail.com
Tue Feb 4 17:41:00 GMT 2020
On Sat, 1 Feb 2020 at 11:07, Edward Diener
<eldlistmailingz@tropicsoft.com> wrote:
>
> Given the code:
>
> class cbase;
> int main()
> {
> typedef int __attribute__ ((__stdcall__)) (cbase::* atype)();
> typedef int __attribute__ ((__cdecl__)) (cbase::* btype)();
> typedef int __attribute__ ((__fastcall__)) (cbase::* ctype)();
> typedef int __attribute__ ((__thiscall__)) (cbase::* dtype)();
> return 0;
> }
>
>
> If I compile this for x64 (-m64) in gcc-9.2 I receive no errors or
Aside: Please don't misuse the term "x32" (which means something
different here), and avoid the dumb "x64" term (which is a
Windows-ism).
More information about the Gcc-help
mailing list