aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/m68k/coldfire/fpu
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2018-02-01 20:58:57 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-02-01 20:58:57 +0000
commiteb65a3d545f9820853b454ce342385799dd479e9 (patch)
tree5fbdbb6bdde8add4431e44847cac508067a65122 /sysdeps/m68k/coldfire/fpu
parent8a6bb1d08686ae921601d00bdbcc76c96e5b92de (diff)
downloadglibc-eb65a3d545f9820853b454ce342385799dd479e9.tar
glibc-eb65a3d545f9820853b454ce342385799dd479e9.tar.gz
glibc-eb65a3d545f9820853b454ce342385799dd479e9.tar.bz2
glibc-eb65a3d545f9820853b454ce342385799dd479e9.zip
Remove some math_private.h libc_feholdexcept_setround overrides.
math_private.h headers for configurations lacking support for floating-point exceptions and rounding modes define libc_feholdexcept_setround to override the default version with one that discards its rounding mode argument. Unlike other such libc_fe* macros that I removed, this one is actually used for such configurations (in dbl-64/e_sqrt.c). However, this does not make the macro required. It's only used for such configurations with FE_TONEAREST as the rounding mode (anything needing another mode should not be used when that mode is unavailable), and the default definition just calls __feholdexcept and __fesetround. Since we now have suitable inline do-nothing definitions of __feholdexcept and __fesetround for the cases of no exceptions and rounding modes, we can just rely on those inlines to achieve the same optimization as this macro definition. Thus, this patch removes those macro definitions (and the math_private.h headers containing them, when no longer needed after that removal). Tested with build-many-glibcs.py that installed stripped shared libraries are unchanged by the patch. * sysdeps/m68k/coldfire/fpu/math_private.h: Move to .... * sysdeps/m68k/coldfire/math_private.h: ... here. * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file. * sysdeps/tile/math_private.h: Likewise. * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround): Remove macro. * sysdeps/nios2/math_private.h (libc_feholdexcept_setround): Likewise.
Diffstat (limited to 'sysdeps/m68k/coldfire/fpu')
-rw-r--r--sysdeps/m68k/coldfire/fpu/math_private.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/sysdeps/m68k/coldfire/fpu/math_private.h b/sysdeps/m68k/coldfire/fpu/math_private.h
deleted file mode 100644
index d306a508b4..0000000000
--- a/sysdeps/m68k/coldfire/fpu/math_private.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef COLDFIRE_MATH_PRIVATE_H
-#define COLDFIRE_MATH_PRIVATE_H 1
-
-/* Enable __finitel, __isinfl, and __isnanl for binary compatibility
- when built without long double support. */
-#define LDBL_CLASSIFY_COMPAT 1
-
-#include_next <math_private.h>
-
-#endif