aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2008-08-19 15:54:50 +0000
committerJoseph Myers <joseph@codesourcery.com>2008-08-19 15:54:50 +0000
commit606c1b1771ed7673a74aa97c8f1c47c64e94e5fb (patch)
treef87f8f03dbcc16863f8f12a0b435d101cffe1e98
parentd0a39e1daf2a06bada8990e352aa890f3929df1c (diff)
downloadglibc-606c1b1771ed7673a74aa97c8f1c47c64e94e5fb.tar.xz
glibc-606c1b1771ed7673a74aa97c8f1c47c64e94e5fb.zip
* sysdeps/mips/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Make asms
volatile.
-rw-r--r--ChangeLog.mips5
-rw-r--r--sysdeps/mips/fpu_control.h7
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog.mips b/ChangeLog.mips
index e7aee501db..409c2c9a84 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,3 +1,8 @@
+2008-08-19 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/mips/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Make asms
+ volatile.
+
2008-07-18 Joseph Myers <joseph@codesourcery.com>
* sysdeps/mips/bits/setjmp.h (__jmp_buf): Give name to structure
diff --git a/sysdeps/mips/fpu_control.h b/sysdeps/mips/fpu_control.h
index 5712ac5338..eb71928a5a 100644
--- a/sysdeps/mips/fpu_control.h
+++ b/sysdeps/mips/fpu_control.h
@@ -1,5 +1,6 @@
/* FPU control word bits. Mips version.
- Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2006, 2008
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Olaf Flebbe and Ralf Baechle.
@@ -100,8 +101,8 @@ extern fpu_control_t __fpu_control;
typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__SI__)));
/* Macros for accessing the hardware control word. */
-#define _FPU_GETCW(cw) __asm__ ("cfc1 %0,$31" : "=r" (cw))
-#define _FPU_SETCW(cw) __asm__ ("ctc1 %0,$31" : : "r" (cw))
+#define _FPU_GETCW(cw) __asm__ volatile ("cfc1 %0,$31" : "=r" (cw))
+#define _FPU_SETCW(cw) __asm__ volatile ("ctc1 %0,$31" : : "r" (cw))
/* Default control word set at startup. */
extern fpu_control_t __fpu_control;