]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Make float128_private.h work with generic ieee754.h.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jun 2017 22:53:01 +0000 (22:53 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jun 2017 22:53:01 +0000 (22:53 +0000)
float128_private.h redefines ieee754.h identifiers ieee854_long_double
and IEEE854_LONG_DOUBLE_BIAS to map them to identifiers from
ieee754_float128.h.

This causes problems when ieee754.h is included after
float128_private.h and it's a version of ieee754.h that also defines
those identifiers; specifically, sysdeps/ieee754/ieee754.h, which
defines those identifiers for the x86 extended format.  This patch
fixes this by ensuring an include of ieee754.h from float128_private.h
before the redefinitions.

Tested for x86_64 (in conjunction with float128 patches).

* sysdeps/ieee754/float128/float128_private.h: Include
<ieee754.h>.

ChangeLog
sysdeps/ieee754/float128/float128_private.h

index cd886956ae761cd0be2ce79d40422bba8b4ce353..d1de2109fd30f45b0994b6433991f0b10049cb22 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-06-22  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/ieee754/float128/float128_private.h: Include
+       <ieee754.h>.
+
        * sysdeps/generic/math_private.h (__EXPR_FLT128): Do not apply
        typeof to argument passed to __builtin_types_compatible_p.
        (min_of_type): Pass type argument, not x, to __EXPR_FLT128.
index 1e00853c8361e534daad81831e93611b6e18802c..c8b153d0c1a60ddcf7d57cd3aaa687a1fda5b675 100644 (file)
 #define HUGE_VALL HUGE_VAL_F128
 #include <math/mul_splitl.h>
 
+/* This must be included before the renames of types and macros from
+   it.  */
+#include <ieee754.h>
+
 /* Renames derived from math_private.h.  */
 #include <math_private.h>
 #include <ieee754_float128.h>