mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 14:50:05 +00:00
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>
This commit is contained in:
parent
c35cad016b
commit
c39cf53702
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user