public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Tom Tromey <tom@tromey.com>
Cc: Richard Henderson <rth@redhat.com>,
	 libffi-discuss <libffi-discuss@sourceware.org>
Subject: Re: documentation patch, oddities, and proposals
Date: Mon, 16 Nov 2015 04:27:00 -0000	[thread overview]
Message-ID: <878u5ypo1h.fsf@tromey.com> (raw)
In-Reply-To: <87si4dctqh.fsf@tromey.com> (Tom Tromey's message of "Tue, 10 Nov	2015 16:36:22 -0700")

Tom> * Require each ABI to have a string name and provide a way to look up
Tom>   ABI by name.
[...]
Tom>   Also, document all ABIs -- not really an ABI problem, but worth
Tom>   pointing out.
Tom>   I suppose this could be added without breaking ABI.

I was taking a stab at this today but I realized I don't fully
understand the PPC ABI stuff.

Unlike the other ports, src/powerpc/ffitarget.h puts a bunch of flags
into the ffi_abi enum.  This is fine (a bit odd maybe), but what I don't
know is whether all possible combinations of flags are valid.

For one host:

  FFI_LINUX = 8,
  /* This and following bits can reuse FFI_COMPAT values.  */
  FFI_LINUX_STRUCT_ALIGN = 1,
  FFI_LINUX_LONG_DOUBLE_128 = 2,

FFI_LINUX is required but can zero or more of the others be added in any
combination?

Another host:

  FFI_SYSV = 8,
  FFI_SYSV_SOFT_FLOAT = 1,
  FFI_SYSV_STRUCT_RET = 2,
  FFI_SYSV_IBM_LONG_DOUBLE = 4,
  FFI_SYSV_LONG_DOUBLE_128 = 16,

Same question here.

If they are all valid then I guess I'll need to rethink my simple naming
scheme, since having 16 different multi-word ABI names seems unpleasant.

Tom

  reply	other threads:[~2015-11-16  4:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-04  5:32 Tom Tromey
2015-11-04  5:35 ` Andrew Pinski
2015-11-04  7:31 ` Richard Henderson
2015-11-04 14:20   ` Tom Tromey
2015-11-04 14:24     ` Richard Henderson
2015-11-07 19:01   ` Tom Tromey
2015-11-09  7:39     ` Richard Henderson
2015-11-10 23:36   ` Tom Tromey
2015-11-16  4:27     ` Tom Tromey [this message]
2015-11-17  9:09       ` Richard Henderson

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=878u5ypo1h.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=libffi-discuss@sourceware.org \
    --cc=rth@redhat.com \
    /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).