Fix powerpc-nofpu build.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 25 Nov 2013 19:07:55 +0000 (19:07 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 25 Nov 2013 19:07:55 +0000 (19:07 +0000)
ChangeLog
sysdeps/powerpc/nofpu/fenv_libc.h
sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h

index 9e2a0c6..9fcda27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-11-25  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
+       * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
+       Likewise.
+
 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
 
        * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
index 14a2d04..a0b6b91 100644 (file)
@@ -25,4 +25,7 @@
 
 #include <fenv.h>
 
+/* ldbl-128ibm code uses __fegetround.  */
+#define __fegetround() fegetround ()
+
 #endif /* fenv_libc.h */
index 9637580..e905eda 100644 (file)
@@ -21,6 +21,9 @@
 
 #include <fenv.h>
 
+/* ldbl-128ibm code uses __fegetround.  */
+#define __fegetround() fegetround ()
+
 int __feraiseexcept_spe (int);
 libm_hidden_proto (__feraiseexcept_spe)