Remove __NO_MATH_INLINES

With fenvinline.h removal the flag is not used anymore.

Checked on x86_64-linux-gnu.
This commit is contained in:
Adhemerval Zanella 2020-03-20 10:05:20 -03:00
parent 4b850b1f29
commit c10dde0d2a
6 changed files with 3 additions and 26 deletions

View File

@ -2010,12 +2010,6 @@ might have a reduced precision and/or argument range in comparison with
the library functions. The latter inline functions are only available the library functions. The latter inline functions are only available
if the flag @code{-ffast-math} is given to GNU CC. if the flag @code{-ffast-math} is given to GNU CC.
In cases where the inline functions and macros are not wanted the symbol
@code{__NO_MATH_INLINES} should be defined before any system header is
included. This will ensure that only library functions are used. Of
course, it can be determined for each file in the project whether
giving this option is preferable or not.
Not all hardware implements the entire @w{IEEE 754} standard, and even Not all hardware implements the entire @w{IEEE 754} standard, and even
if it does there may be a substantial performance penalty for using some if it does there may be a substantial performance penalty for using some
of its features. For example, enabling traps on some processors forces of its features. For example, enabling traps on some processors forces

View File

@ -613,10 +613,6 @@ endef
object-suffixes-left := $(all-object-suffixes) object-suffixes-left := $(all-object-suffixes)
include $(o-iterator) 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) ifneq ($(long-double-fcts),yes)
# The `double' and `long double' types are the same on this machine. # 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 # We won't compile the `long double' code at all. Tell the `double' code

View File

@ -39,10 +39,8 @@ double, float and long double implementation of libm. Each driver
selects the desired real floating type to exercise the math functions selects the desired real floating type to exercise the math functions
to test with (float, double, or long double) by defining a small set 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 of macros just before including the generic "libm-test.c" file. Each
driver also either defines or undefines the __NO_MATH_INLINES macro driver is compiled into a single executable test program with the
just before including "libm-test-<func>.c" to select either the real corresponding name.
or inline functions, respectively. 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 As mentioned above, the "gen-libm-test.py" script looks for a file
named "libm-test-ulps" in the platform specific sysdep directory (or named "libm-test-ulps" in the platform specific sysdep directory (or

View File

@ -1257,13 +1257,6 @@ iszero (__T __val)
# error "M_* values needed for _Float128x" # error "M_* values needed for _Float128x"
#endif #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 #ifdef __USE_ISOC99
# if __GNUC_PREREQ (3, 1) # if __GNUC_PREREQ (3, 1)
/* ISO C99 defines some macros to compare number while taking care for /* ISO C99 defines some macros to compare number while taking care for

View File

@ -19,8 +19,6 @@
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
#ifndef HAVE_MAIN #ifndef HAVE_MAIN
#undef __NO_MATH_INLINES
#define __NO_MATH_INLINES 1
#include <float.h> #include <float.h>
#include <math.h> #include <math.h>
#include <stdint.h> #include <stdint.h>

View File

@ -18,8 +18,6 @@
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
#ifndef HAVE_MAIN #ifndef HAVE_MAIN
#undef __NO_MATH_INLINES
#define __NO_MATH_INLINES 1
#include <float.h> #include <float.h>
#include <math.h> #include <math.h>
#include <complex.h> #include <complex.h>