+2013-06-18 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/arm/fpu_control.h [!_LIBC && __SOFTFP__]: Change
+ condition to [!(_LIBC && !_LIBC_TEST) && __SOFTFP__].
+ * sysdeps/arm/test-fpucw.c: New file.
+
2013-06-17 Joseph Myers <joseph@codesourcery.com>
[BZ #14907]
#ifndef _FPU_CONTROL_H
#define _FPU_CONTROL_H
-#if !defined(_LIBC) && defined(__SOFTFP__)
+#if !(defined(_LIBC) && !defined(_LIBC_TEST)) && defined(__SOFTFP__)
#define _FPU_RESERVED 0xffffffff
#define _FPU_DEFAULT 0x00000000
--- /dev/null
+/* Defining _LIBC_TEST stops fpu_control.h from defining the
+ hard-float versions of macros (for use with dynamic VFP detection)
+ when compiling for soft-float. */
+#define _LIBC_TEST
+#include <math/test-fpucw.c>