aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-03-20 10:05:20 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-04-17 11:40:44 -0300
commitc10dde0d2a6373f6e7688e93a5c9db58162ddb1f (patch)
tree0fa96895eda02c5513715583ea9b29e41bbacc94 /math
parent4b850b1f29648f666a2fa8ceed639132830e169c (diff)
downloadglibc-c10dde0d2a6373f6e7688e93a5c9db58162ddb1f.zip
glibc-c10dde0d2a6373f6e7688e93a5c9db58162ddb1f.tar.gz
glibc-c10dde0d2a6373f6e7688e93a5c9db58162ddb1f.tar.bz2
Remove __NO_MATH_INLINES
With fenvinline.h removal the flag is not used anymore. Checked on x86_64-linux-gnu.
Diffstat (limited to 'math')
-rw-r--r--math/Makefile4
-rw-r--r--math/README.libm-test8
-rw-r--r--math/math.h7
-rw-r--r--math/test-tgmath.c2
-rw-r--r--math/test-tgmath2.c2
5 files changed, 3 insertions, 20 deletions
diff --git a/math/Makefile b/math/Makefile
index 1d6413a..62667d9 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -613,10 +613,6 @@ endef
object-suffixes-left := $(all-object-suffixes)
include $(o-iterator)
-# We don't want the fdlibm code to use the inline math functions,
-# only the fdlibm code.
-math-CPPFLAGS += -D__NO_MATH_INLINES
-
ifneq ($(long-double-fcts),yes)
# The `double' and `long double' types are the same on this machine.
# We won't compile the `long double' code at all. Tell the `double' code
diff --git a/math/README.libm-test b/math/README.libm-test
index 28d7a2e..f32c629 100644
--- a/math/README.libm-test
+++ b/math/README.libm-test
@@ -38,11 +38,9 @@ The test drivers "test-double-<func>.c", "test-float-<func>.c", and
double, float and long double implementation of libm. Each driver
selects the desired real floating type to exercise the math functions
to test with (float, double, or long double) by defining a small set
-of macros just before including the generic "libm-test.c" file. Each
-driver also either defines or undefines the __NO_MATH_INLINES macro
-just before including "libm-test-<func>.c" to select either the real
-or inline functions, respectively. Each driver is compiled into a
-single executable test program with the corresponding name.
+of macros just before including the generic "libm-test.c" file. Each
+driver is compiled into a single executable test program with the
+corresponding name.
As mentioned above, the "gen-libm-test.py" script looks for a file
named "libm-test-ulps" in the platform specific sysdep directory (or
diff --git a/math/math.h b/math/math.h
index 5c3dcb9..777d108 100644
--- a/math/math.h
+++ b/math/math.h
@@ -1257,13 +1257,6 @@ iszero (__T __val)
# error "M_* values needed for _Float128x"
#endif
-/* When compiling in strict ISO C compatible mode we must not use the
- inline functions since they, among other things, do not set the
- `errno' variable correctly. */
-#if defined __STRICT_ANSI__ && !defined __NO_MATH_INLINES
-# define __NO_MATH_INLINES 1
-#endif
-
#ifdef __USE_ISOC99
# if __GNUC_PREREQ (3, 1)
/* ISO C99 defines some macros to compare number while taking care for
diff --git a/math/test-tgmath.c b/math/test-tgmath.c
index 1f72cc3..6d5a84b 100644
--- a/math/test-tgmath.c
+++ b/math/test-tgmath.c
@@ -19,8 +19,6 @@
<https://www.gnu.org/licenses/>. */
#ifndef HAVE_MAIN
-#undef __NO_MATH_INLINES
-#define __NO_MATH_INLINES 1
#include <float.h>
#include <math.h>
#include <stdint.h>
diff --git a/math/test-tgmath2.c b/math/test-tgmath2.c
index 91b93e6..54f8284 100644
--- a/math/test-tgmath2.c
+++ b/math/test-tgmath2.c
@@ -18,8 +18,6 @@
<https://www.gnu.org/licenses/>. */
#ifndef HAVE_MAIN
-#undef __NO_MATH_INLINES
-#define __NO_MATH_INLINES 1
#include <float.h>
#include <math.h>
#include <complex.h>