]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Compile libmvec with -fno-math-errno
authorJoe Ramsay <Joe.Ramsay@arm.com>
Thu, 16 May 2024 08:16:36 +0000 (09:16 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 21 May 2024 13:38:22 +0000 (14:38 +0100)
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>
Makeconfig

index 59e21d4c82b7ec696154d12aaaecd72e9bae6f92..9fe664ae3ad6c430d229422f99ea3162adde0d01 100644 (file)
@@ -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 \