This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Function attributes and x32, x64
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Edward Diener <eldlistmailingz at tropicsoft dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 4 Feb 2020 17:41:09 +0000
- Subject: Re: Function attributes and x32, x64
- References: <r13m4f$jj6$1@ciao.gmane.io>
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).