From: Richard Earnshaw <Richard.Earnshaw@foss.arm.com>
To: "Victor L. Do Nascimento" <victor.donascimento@arm.com>,
newlib@sourceware.org
Subject: Re: [PATCH] libc: arm: setjmp.S code cleanup
Date: Mon, 19 Dec 2022 11:23:17 +0000 [thread overview]
Message-ID: <ac161878-353b-986f-2a4c-1aa2d65f858e@foss.arm.com> (raw)
In-Reply-To: <yw8j359i3pcm.fsf@arm.com>
On 14/12/2022 16:46, Victor L. Do Nascimento wrote:
> The code for setjmp and longjmp contains unconditionally-disabled
> legacy FPA code.
>
> Given the code is not used by any targets, remove the code.
> ---
> newlib/libc/machine/arm/setjmp.S | 12 ------------
> 1 file changed, 12 deletions(-)
>
> diff --git a/newlib/libc/machine/arm/setjmp.S b/newlib/libc/machine/arm/setjmp.S
> index 4cf0a8e3f..d814afea8 100644
> --- a/newlib/libc/machine/arm/setjmp.S
> +++ b/newlib/libc/machine/arm/setjmp.S
> @@ -182,12 +182,6 @@ SYM (\name):
> vstm r0, { d8-d15 }
> #endif
>
> -#if 0 /* Simulator does not cope with FP instructions yet. */
> -#ifndef __SOFTFP__
> - /* Save the floating point registers. */
> - sfmea f4, 4, [a1]
> -#endif
> -#endif
> /* When setting up the jump buffer return 0. */
> mov r0, #0
>
> @@ -212,12 +206,6 @@ SYM (\name):
> vldm r0, { d8-d15 }
> #endif
>
> -#if 0 /* Simulator does not cope with FP instructions yet. */
> -#ifndef __SOFTFP__
> - /* Restore floating point registers as well. */
> - lfmfd f4, 4, [a1]
> -#endif
> -#endif
> /* Put the return value into the integer result register.
> But if it is zero then return 1 instead. */
> movs r0, r1
Thanks, pushed.
R.
prev parent reply other threads:[~2022-12-19 11:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-14 16:46 Victor L. Do Nascimento
2022-12-19 11:23 ` Richard Earnshaw [this message]
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=ac161878-353b-986f-2a4c-1aa2d65f858e@foss.arm.com \
--to=richard.earnshaw@foss.arm.com \
--cc=newlib@sourceware.org \
--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).