summaryrefslogtreecommitdiff
path: root/sysdeps/sh/sh4/fpu/fpu_control.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2009-12-14 16:38:19 +0100
committerAndreas Schwab <schwab@redhat.com>2009-12-14 16:38:19 +0100
commit57596e7a129337d40dc4c966aa65009b7339f3cc (patch)
tree5922f5630b0bca97035c598775d4c9ee8ce4c2a6 /sysdeps/sh/sh4/fpu/fpu_control.h
parent72500358549b4df4cd239e081733a643fb3b3d03 (diff)
parent2510d01ddba195f8cfaa3c2349f75e0612719d82 (diff)
Merge remote branch 'origin/master' into fedora/master
Diffstat (limited to 'sysdeps/sh/sh4/fpu/fpu_control.h')
-rw-r--r--sysdeps/sh/sh4/fpu/fpu_control.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/sh/sh4/fpu/fpu_control.h b/sysdeps/sh/sh4/fpu/fpu_control.h
index 43eb9e5492..d1be46d12f 100644
--- a/sysdeps/sh/sh4/fpu/fpu_control.h
+++ b/sysdeps/sh/sh4/fpu/fpu_control.h
@@ -1,5 +1,5 @@
/* FPU control word definitions. SH version.
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -45,6 +45,8 @@ typedef unsigned int fpu_control_t;
#define _FPU_GETCW(cw) __asm__ ("sts fpscr,%0" : "=r" (cw))
#if defined __GNUC__
+/* GCC provides this function. */
+extern void __set_fpscr (unsigned long);
#define _FPU_SETCW(cw) __set_fpscr ((cw))
#else
#define _FPU_SETCW(cw) __asm__ ("lds %0,fpscr" : : "r" (cw))