aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-06-18 00:35:03 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-06-18 00:35:03 +0000
commit18e5cc3a828b21d1a40b8b5ec0c666e6e01c47de (patch)
tree6c7b364f067402c7cd38f75983558a1251978b4e
parentc411604296b4e8c0d678addd03bfda024d652a2e (diff)
downloadglibc-18e5cc3a828b21d1a40b8b5ec0c666e6e01c47de.tar
glibc-18e5cc3a828b21d1a40b8b5ec0c666e6e01c47de.tar.gz
glibc-18e5cc3a828b21d1a40b8b5ec0c666e6e01c47de.tar.bz2
glibc-18e5cc3a828b21d1a40b8b5ec0c666e6e01c47de.zip
Fix warnings from ARM soft-float fpu_control.h.
-rw-r--r--ports/ChangeLog.arm5
-rw-r--r--ports/sysdeps/arm/fpu_control.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/ports/ChangeLog.arm b/ports/ChangeLog.arm
index c7e22cc0d1..a901c6ea09 100644
--- a/ports/ChangeLog.arm
+++ b/ports/ChangeLog.arm
@@ -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.
diff --git a/ports/sysdeps/arm/fpu_control.h b/ports/sysdeps/arm/fpu_control.h
index 3ceb58b2fc..513e6948a1 100644
--- a/ports/sysdeps/arm/fpu_control.h
+++ b/ports/sysdeps/arm/fpu_control.h
@@ -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