Re: Function attributes and x32, x64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/4/2020 12:41 PM, Jonathan Wakely wrote:
On Sat, 1 Feb 2020 at 11:07, Edward Diener
<eldlistmailingz@xxxxxxxxxxxxxx> 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).


Do you prefer I should rather say x86-32 and x86-64 for 32-bit and 64-bit compilation respectively ? That is OK with me. But the issue of the error messages when using x86-32 compilation is still baffling to me.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux