]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove some math_private.h libc_fe* overrides.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 1 Feb 2018 20:57:22 +0000 (20:57 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 1 Feb 2018 20:57:22 +0000 (20:57 +0000)
math_private.h headers for configurations lacking support for
floating-point exceptions and rounding modes define various libc_fe*
macros to override the default versions with ones that discard any
exception or rounding mode arguments.

Three of the four macros defined in these headers are no longer needed
there: those macros are only used in fma implementations that are not
used for such configurations, now all those configurations properly
use soft-fp fma implementations instead.  (Effectively, those macros
were a workaround to allow glibc to build in the absence of a proper
fma implementation for this case - now there is such an
implementation, there is no need to support building the wrong
implementation for those configurations.)  Thus, this patch removes
the unnecessary macros.

Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged by the patch.

* sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
Remove macro.
(libc_fetestexcept): Likewise.
(libc_feupdateenv_test): Likewise.
* sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
(libc_fetestexcept): Likewise.
(libc_feupdateenv_test): Likewise.
* sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
(libc_fetestexcept): Likewise.
(libc_feupdateenv_test): Likewise.
* sysdeps/tile/math_private.h (libc_fesetround): Likewise.
(libc_fetestexcept): Likewise.
(libc_feupdateenv_test): Likewise.

ChangeLog
sysdeps/m68k/coldfire/nofpu/math_private.h
sysdeps/microblaze/math_private.h
sysdeps/nios2/math_private.h
sysdeps/tile/math_private.h

index acfe380aaea425a1019b71a273627f6f58d7d294..bd52e877d77bb855b22ac6d2cc044d6eda0cde59 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
+       Remove macro.
+       (libc_fetestexcept): Likewise.
+       (libc_feupdateenv_test): Likewise.
+       * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
+       (libc_fetestexcept): Likewise.
+       (libc_feupdateenv_test): Likewise.
+       * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
+       (libc_fetestexcept): Likewise.
+       (libc_feupdateenv_test): Likewise.
+       * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
+       (libc_fetestexcept): Likewise.
+       (libc_feupdateenv_test): Likewise.
+
        * sysdeps/generic/math_private.h
        [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
        New inline function.
index 951f026eac9c8e14235fcb385e1aeaefbea93ec5..0694de971a2ea6f52da661c34e84a13d1c394a01 100644 (file)
    The overrides for libc_ functions must happen before we include
    the generic math_private.h.  */
 
-#define libc_fesetround(rnd)                   ({ 0; })
-#define libc_fetestexcept(exc)                 ({ 0; })
 #define libc_feholdexcept_setround(env, exc)   ({ (void) (env); 0; })
-#define libc_feupdateenv_test(env, exc)        ({ (void) (env); 0; })
 
 /* Enable __finitel, __isinfl, and __isnanl for binary compatibility
    when built without long double support. */
index 1a2c521c07e8241d8495e3ed63d90bc36fe658a9..1d70d05b81213e9dfde93b76eac049952c862db2 100644 (file)
    The overrides for libc_ functions must happen before we include
    the generic math_private.h.  */
 
-#define libc_fesetround(rnd)                   ({ 0; })
-#define libc_fetestexcept(exc)                 ({ 0; })
 #define libc_feholdexcept_setround(env, exc)   ({ (void) (env); 0; })
-#define libc_feupdateenv_test(env, exc)        ({ (void) (env); 0; })
 
 /* Enable __finitel, __isinfl, and __isnanl for binary compatibility
    when built without long double support. */
index 25140416a8b9929aca830fb9e88080f836d6d7c1..9c734fab58978b7564d961644f29348da6b5d0a2 100644 (file)
    The overrides for libc_ functions must happen before we include
    the generic math_private.h.  */
 
-#define libc_fesetround(rnd)                   ({ 0; })
-#define libc_fetestexcept(exc)                 ({ 0; })
 #define libc_feholdexcept_setround(env, exc)   ({ (void) (env); 0; })
-#define libc_feupdateenv_test(env, exc)        ({ (void) (env); 0; })
 
 /* Enable __finitel, __isinfl, and __isnanl for binary compatibility
    when built without long double support. */
index 32b549ff4e4d91c0a725b5c224c6e42c7bbb7821..09c720469ec4009249f2fdeec0345153e0a8ccdc 100644 (file)
    The overrides for libc_ functions must happen before we include
    the generic math_private.h.  */
 
-#define libc_fesetround(rnd)                   ({ 0; })
-#define libc_fetestexcept(exc)                 ({ 0; })
 #define libc_feholdexcept_setround(env, exc)   ({ (void) (env); 0; })
-#define libc_feupdateenv_test(env, exc)                ({ (void) (env); 0; })
 
 #include_next <math_private.h>