public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
From: John David Anglin <dave.anglin@bell.net>
To: libffi-discuss@sourceware.org
Subject: Passing big structs by value fails on hppa-linux
Date: Sun, 26 Sep 2021 18:16:03 -0400	[thread overview]
Message-ID: <0b66161e-56e7-b358-672d-88c9b7661060@bell.net> (raw)

This change

commit 43e4ad4d7b4bcc87ee447736a1172b2801a47908 (HEAD, refs/bisect/bad)
Author: Anthony Green <green@moxielogic.com>
Date:   Thu Jul 29 07:55:59 2021 -0400

    Test passing structs by value

exposed a problem on the hppa linux port:

Running ../../libffi/testsuite/libffi.call/call.exp ...
FAIL: libffi.call/struct_by_value_big.c -W -Wall -Wno-psabi -O0 execution test
FAIL: libffi.call/struct_by_value_big.c -W -Wall -Wno-psabi -O2 execution test

Currently, the code assumes that structs larger than 8 bytes are passed by hidden reference.

Probably, this has broken builds of python_cffi, etc.

Dave

-- 
John David Anglin  dave.anglin@bell.net



                 reply	other threads:[~2021-09-26 22:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=0b66161e-56e7-b358-672d-88c9b7661060@bell.net \
    --to=dave.anglin@bell.net \
    --cc=libffi-discuss@sourceware.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).