From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 01C70385F014; Wed, 17 Apr 2024 20:15:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 01C70385F014 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713384929; bh=1i6clUW88ihZHPg6UOnIYEnsOdD0rK2dKwuO5fOcbCU=; h=From:To:Subject:Date:From; b=RSMqO0lYLwEp4BwgE03Hg8wvcS0GoekOnWc+nCD9tuoqGCyExt0uSAgPk8KH+wtjG SFrSnjR9vHyWz+1GXg0EQHNdKV8Yrq0/9HwnRqsNR/jJw1c2L6TfJ8SBDRSt786P5W RxScLwDpnmrm3hrc4VfzJ+K2SuwMzQBhGslrmWx4= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] Build glibc with -ftrapping-math X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: c72809e0d871e8eebee20a6d9d0319392555e3d5 X-Git-Newrev: 8565bb7763e71465b2f6dceb2319a785cf9092c0 Message-Id: <20240417201529.01C70385F014@sourceware.org> Date: Wed, 17 Apr 2024 20:15:28 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8565bb7763e71465b2f6dceb2319a785cf9092c0 commit 8565bb7763e71465b2f6dceb2319a785cf9092c0 Author: Adhemerval Zanella Date: Thu Feb 15 08:58:46 2024 -0300 Build glibc with -ftrapping-math GCC enables it by default, clang in the other hand sets -fno-trapping-math. This is required to fix some math and stdlib tests that explicit raises floating point exceptions (i.e. stdlib/tst-strtod-round on aarch64). Diff: --- Makeconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makeconfig b/Makeconfig index 3cf894479a..cf0b7ab8b6 100644 --- a/Makeconfig +++ b/Makeconfig @@ -883,6 +883,9 @@ endif # disable any optimization that assume default rounding mode. +math-flags = $(config-cflags-frounding-math) +# We have to assume that glibc functions might generate user-visible traps. ++math-flags += -ftrapping-math + # Logically only "libnldbl", "nonlib" and "testsuite" should be using # -fno-math-errno. However due to GCC bug #88576, only "libm" can use # -fno-math-errno.