Fix warnings from ARM soft-float fpu_control.h.

This commit is contained in:
Joseph Myers 2013-06-18 00:35:03 +00:00
parent c411604296
commit 18e5cc3a82
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,10 @@
2013-06-18 Joseph Myers <joseph@codesourcery.com>
* sysdeps/arm/fpu_control.h [!(_LIBC && !_LIBC_TEST) &&
__SOFTFP__] (_FPU_GETCW): Define to (cw) = 0.
[!(_LIBC && !_LIBC_TEST) && __SOFTFP__] (_FPU_SETCW): Define to
(void) (cw).
* sysdeps/arm/fpu_control.h [!_LIBC && __SOFTFP__]: Change
condition to [!(_LIBC && !_LIBC_TEST) && __SOFTFP__].
* sysdeps/arm/test-fpucw.c: New file.

View File

@ -24,8 +24,8 @@
#define _FPU_RESERVED 0xffffffff
#define _FPU_DEFAULT 0x00000000
typedef unsigned int fpu_control_t;
#define _FPU_GETCW(cw) 0
#define _FPU_SETCW(cw) do { } while (0)
#define _FPU_GETCW(cw) (cw) = 0
#define _FPU_SETCW(cw) (void) (cw)
extern fpu_control_t __fpu_control;
#else