test-fpucw-ieee: Don't use _FPU_IEEE if not defined
authorChris Metcalf <cmetcalf@tilera.com>
Mon, 18 Nov 2013 18:27:09 +0000 (13:27 -0500)
committerChris Metcalf <cmetcalf@tilera.com>
Mon, 18 Nov 2013 23:19:02 +0000 (18:19 -0500)
Not all architectures define this value, and if they don't,
just let the test run the same as test-fpucw, with __fpu_control
set to _FPU_DEFAULT explicitly.

ChangeLog
math/test-fpucw-ieee.c

index 4042e3b..b0ca6f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
+
+       * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
+       Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
+
 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
 
        * elf/Makefile (tst-auxv): New test.
index ae5fc73..7596486 100644 (file)
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#define FPU_CONTROL _FPU_IEEE
+#ifdef _FPU_IEEE
+/* Some architectures don't have _FPU_IEEE.  */
+# define FPU_CONTROL _FPU_IEEE
+#endif
 
 #include "test-fpucw.c"
 
 /* Preempt the library's definition of `__fpu_control'.  */
-fpu_control_t __fpu_control = _FPU_IEEE;
+fpu_control_t __fpu_control = FPU_CONTROL;