public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Edward Diener <eldlistmailingz@tropicsoft.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Function attributes and x32, x64
Date: Tue, 04 Feb 2020 17:41:00 -0000	[thread overview]
Message-ID: <CAH6eHdSA1AHR8hgJyPj7rPoQ+qcAF4yFq11rgK0mdqVDo1xuCQ@mail.gmail.com> (raw)
In-Reply-To: <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).

  parent reply	other threads:[~2020-02-04 17:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-01 11:07 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 [this message]
2020-02-04 23:24   ` Edward Diener
2020-02-05  9:50     ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH6eHdSA1AHR8hgJyPj7rPoQ+qcAF4yFq11rgK0mdqVDo1xuCQ@mail.gmail.com \
    --to=jwakely.gcc@gmail.com \
    --cc=eldlistmailingz@tropicsoft.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).