From: Mike Frysinger <vapier@gentoo.org>
To: "Victor L. Do Nascimento" <victor.donascimento@arm.com>
Cc: newlib@sourceware.org, richard.earnshaw@arm.com
Subject: Re: [PATCH] libc: arm: fix setjmp abi non-conformance
Date: Wed, 25 Jan 2023 08:30:35 -0500 [thread overview]
Message-ID: <Y9Eu+ya/PXTGJfKd@vapier> (raw)
In-Reply-To: <yw8j4jtz4arz.fsf@arm.com>
[-- Attachment #1: Type: text/plain, Size: 936 bytes --]
On 13 Dec 2022 14:51, Victor L. Do Nascimento wrote:
> As per the arm Procedure Call Standard for the Arm Architecture
> section 6.1.2 [1], VFP registers s16-s31 (d8-d15, q4-q7) must be
> preserved across subroutine calls.
>
> The current setjmp/longjmp implementations preserve only the core
> registers, with the jump buffer size too small to store the required
> co-processor registers.
>
> In accordance with the C Library ABI for the Arm Architecture
> section 6.11 [2], this patch sets _JBTYPE to long long adjusting
> _JBLEN to 20.
>
> It also emits vfp load/store instructions depending on architectural
> support, predicated at compile time on ACLE feature-test macros.
this breaks building with GCC 11 and older:
https://bugs.gentoo.org/891589#c7
i don't think it was intentional that this only work with GCC 12+, or if
it was, that we want such requirements. GCC 12 is less than a year old.
-mike
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2023-01-25 13:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 14:51 Victor L. Do Nascimento
2022-12-13 15:54 ` Richard Earnshaw
2023-01-25 13:30 ` Mike Frysinger [this message]
2023-02-03 13:09 ` Richard Earnshaw
2023-02-07 15:24 ` Victor Do Nascimento
2023-02-07 15:30 ` Richard Earnshaw
2023-02-07 21:45 ` Jeff Johnston
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=Y9Eu+ya/PXTGJfKd@vapier \
--to=vapier@gentoo.org \
--cc=newlib@sourceware.org \
--cc=richard.earnshaw@arm.com \
--cc=victor.donascimento@arm.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).