public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Compile libmvec with -fno-math-errno
@ 2024-05-21 13:59 Szabolcs Nagy
  0 siblings, 0 replies; only message in thread
From: Szabolcs Nagy @ 2024-05-21 13:59 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c39cf53702e570b64a70d8f7fdfe277017acfb5f

commit c39cf53702e570b64a70d8f7fdfe277017acfb5f
Author: Joe Ramsay <Joe.Ramsay@arm.com>
Date:   Thu May 16 09:16:36 2024 +0100

    Compile libmvec with -fno-math-errno
    
    Rounding intrinsics may not be inlined without
    -fno-math-errno. libmvec is free to do what it
    likes with errno, so disable it for better
    performance.
    
    Tested with no regression on aarch64 and x86_64.
    
    Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>

Diff:
---
 Makeconfig | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makeconfig b/Makeconfig
index 59e21d4c82..9fe664ae3a 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -899,9 +899,10 @@ endif
 +math-flags = -frounding-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.
-+extra-math-flags = $(if $(filter libm,$(in-module)),-fno-math-errno,-fmath-errno)
+# -fno-math-errno. However due to GCC bug #88576, only "libm" and
+# "libmvec" can use -fno-math-errno.
++extra-math-flags = $(if $(filter libmvec libm,$(in-module)),\
+                      -fno-math-errno,-fmath-errno)
 
 # Use 64 bit time_t support for installed programs
 installed-modules = nonlib nscd ldconfig locale_programs \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-21 13:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-21 13:59 [glibc] Compile libmvec with -fno-math-errno Szabolcs Nagy

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).