From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1035) id 2E6993858CDA; Mon, 19 Dec 2022 11:23:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E6993858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671448982; bh=C+/C6hsgSqmmV4WLO5GDS/oNG/dH55laCqahrCIQ96k=; h=From:To:Subject:Date:From; b=JQj1LNd3VY4oQyBbqCeBmvuj0h8f9X/MeinihTGnAi7hEyGxmsrTqq24s46tOpz9k XF/0bi/5mYIajyaM8RWEL8STwzN1kmKfWT/93tabUrpXmKH4iHDfhGczBN09DyFoTW 4kBjb5KlGdAbzQkG3EpQZGEfT8ehW1zW93hMRaGI= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Richard Earnshaw To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] libc: arm: setjmp.S code cleanup X-Act-Checkin: newlib-cygwin X-Git-Author: Victor L. Do Nascimento X-Git-Refname: refs/heads/master X-Git-Oldrev: 9bba9c2bdd22b2011f1fa6da36e6bc6a70af42ec X-Git-Newrev: 57a08d6b9a01ed56ff80905d0b3cb30fe217f1d3 Message-Id: <20221219112302.2E6993858CDA@sourceware.org> Date: Mon, 19 Dec 2022 11:23:02 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D57a08d6b9a0= 1ed56ff80905d0b3cb30fe217f1d3 commit 57a08d6b9a01ed56ff80905d0b3cb30fe217f1d3 Author: Victor L. Do Nascimento Date: Wed Dec 14 16:46:33 2022 +0000 libc: arm: setjmp.S code cleanup =20 The code for setjmp and longjmp contains unconditionally-disabled legacy FPA code. =20 Given the code is not used by any targets, remove the code. Diff: --- 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/set= jmp.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 =20 -#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 =20 @@ -212,12 +206,6 @@ SYM (\name): vldm r0, { d8-d15 } #endif =20 -#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