From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 069FE385780B; Mon, 23 Aug 2021 19:51:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 069FE385780B From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/102017] libgcc ieee754-df.S for arm does not support exceptions Date: Mon, 23 Aug 2021 19:51:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2021 19:51:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102017 --- Comment #2 from joseph at codesourcery dot com --- If you want to support exceptions and rounding modes for double precision=20 on processors with hardware support for single-precision only=20 floating-point arithmetic, I suggest using soft-fp instead of this=20 Arm-specific code; lots of configurations use soft-fp integrated with=20 hardware exceptions and rounding modes like that (e.g. for binary128=20 TFmode arithmetic on architectures without hardware support for it but=20 with hardware SFmode and DFmode support). If you want to support exceptions, rounding modes or both on processors=20 with no hardware floating-point, you have the complication of needing=20 working TLS support from the runtime environment (if the floating-point=20 code might ever be used in an environment with threads), because=20 exceptions and rounding modes are thread-local (not global) state.=