diff mbox

Make float128_private.h work with generic ieee754.h [committed]

Message ID alpine.DEB.2.20.1706222253150.18518@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph Myers June 22, 2017, 10:53 p.m. UTC
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).  Committed.

2017-06-22  Joseph Myers  <joseph@codesourcery.com>

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

Patch

diff --git a/sysdeps/ieee754/float128/float128_private.h b/sysdeps/ieee754/float128/float128_private.h
index 1e00853..5e6ed78 100644
--- a/sysdeps/ieee754/float128/float128_private.h
+++ b/sysdeps/ieee754/float128/float128_private.h
@@ -23,6 +23,10 @@ 
 #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>