linux-omap 2.6.39: sync with meta-texasinstruments
[openembedded.git] / recipes / eglibc / files / sh4_set_fpscr_2.12.patch
blob19cccc0dc1189073599338b5836ad28ee6ed91b1
1 diff --git a/sysdeps/sh/sh4/fpu/fpu_control.h b/sysdeps/sh/sh4/fpu/fpu_control.h
2 index d1be46d..3ea37d3 100644
3 --- a/sysdeps/sh/sh4/fpu/fpu_control.h
4 +++ b/sysdeps/sh/sh4/fpu/fpu_control.h
5 @@ -1,5 +1,5 @@
6 /* FPU control word definitions. SH version.
7 - Copyright (C) 1999, 2000, 2009 Free Software Foundation, Inc.
8 + Copyright (C) 1999, 2000, 2009, 2010 Free Software Foundation, Inc.
9 This file is part of the GNU C Library.
11 The GNU C Library is free software; you can redistribute it and/or
12 @@ -46,7 +46,14 @@ typedef unsigned int fpu_control_t;
14 #if defined __GNUC__
15 /* GCC provides this function. */
16 +/* Allow the use in C++ code. */
17 +#ifdef __cplusplus
18 +extern "C" {
19 +#endif
20 extern void __set_fpscr (unsigned long);
21 +#ifdef __cplusplus
23 +#endif /* C++ */
24 #define _FPU_SETCW(cw) __set_fpscr ((cw))
25 #else
26 #define _FPU_SETCW(cw) __asm__ ("lds %0,fpscr" : : "r" (cw))
27 --
28 1.7.1