diff mbox

Fix float128_private.h redefinition of SET_RESTORE_ROUNDL [committed]

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

Commit Message

Joseph Myers June 22, 2017, 10:58 p.m. UTC
As with other long double identifiers, float128_private.h has a
redefinition of SET_RESTORE_ROUNDL.  However, that redefinition is
broken, since this is a macro with one argument being defined to take
no arguments.  This patch fixes the redefinition.  (x86_64 needs the
redefinition because SET_RESTORE_ROUNDL only changes the x87 rounding
mode, whereas _Float128 arithmetic uses the SSE rounding mode instead
on x86_64.)

Tested for x86_64 (in conjunction with float128 patches).  Committed.

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

	* sysdeps/ieee754/float128/float128_private.h
	[SET_RESTORE_ROUNDF128] (SET_RESTORE_ROUNDL): Take an argument and
	pass it to SET_RESTORE_ROUNDF128.
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
@@ -47,7 +51,7 @@ 
 
 #ifdef SET_RESTORE_ROUNDF128
 # undef SET_RESTORE_ROUNDL
-# define SET_RESTORE_ROUNDL() SET_RESTORE_ROUNDF128()
+# define SET_RESTORE_ROUNDL(RM) SET_RESTORE_ROUNDF128 (RM)
 #endif