This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: [PATCH, libffi, alpha]: Use FFI_ASSERT in ffi_closure_osf_inner
- From: Jay <jay dot krell at cornell dot edu>
- To: Anthony Green <green at moxielogic dot com>
- Cc: Uros Bizjak <ubizjak at gmail dot com>, "<libffi-discuss at sourceware dot org>" <libffi-discuss at sourceware dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Richard Henderson <rth at redhat dot com>, Ian Lance Taylor <iant at google dot com>
- Date: Sat, 20 Sep 2014 11:28:43 -0700
- Subject: Re: [PATCH, libffi, alpha]: Use FFI_ASSERT in ffi_closure_osf_inner
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4ZDJxVU+v7fLOd3jW73LUn0LEcBdwHZpdre4hcGLa6wyw at mail dot gmail dot com> <8738bmip4u dot fsf at moxielogic dot com>
On Sep 20, 2014, at 3:04 AM, Anthony Green <green@moxielogic.com> wrote:
>
> Why not just pass an FFI_TYPE_STRUCT with zero members?
My information may be old or irrelevant but I have used structs with no members with gcc backend, but with nonzero size and alignment, and ran into backend problems, particularly on sparc64, passing them as parameters.
Is that what is being used here?
Maybe best to add some members to achieve equivalent size/alignment?
- Jay