public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Function attributes and x32, x64
@ 2020-02-01 11:07 Edward Diener
  2020-02-02 13:11 ` Liu Hao
  2020-02-04 17:41 ` Jonathan Wakely
  0 siblings, 2 replies; 9+ messages in thread
From: Edward Diener @ 2020-02-01 11:07 UTC (permalink / raw)
  To: gcc-help

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 
warnings. Yet 
https://gcc.gnu.org/onlinedocs/gcc/x86-Function-Attributes.html tells me 
that all four are only for x86-32 targets. Is the documentation wrong, 
is this a bug in gcc-9.2, or have I missed something ?

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-02-06  2:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-01 11:07 Function attributes and x32, x64 Edward Diener
2020-02-02 13:11 ` Liu Hao
2020-02-03 18:37   ` Edward Diener
2020-02-05  3:31     ` Liu Hao
2020-02-05  9:52       ` Jonathan Wakely
2020-02-06  2:03         ` Liu Hao
2020-02-04 17:41 ` Jonathan Wakely
2020-02-04 23:24   ` Edward Diener
2020-02-05  9:50     ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).