r4111 - glibc-package/branches/eglibc-2.11/debian/patches/sh4
Author: schizo
Date: 2010-01-30 18:40:41 +0000 (Sat, 30 Jan 2010)
New Revision: 4111
Added:
glibc-package/branches/eglibc-2.11/debian/patches/sh4/submitted-set_fpscr.diff
Log:
Replace sh4/submitted-set_fpscr.diff
Added: glibc-package/branches/eglibc-2.11/debian/patches/sh4/submitted-set_fpscr.diff
===================================================================
--- glibc-package/branches/eglibc-2.11/debian/patches/sh4/submitted-set_fpscr.diff (rev 0)
+++ glibc-package/branches/eglibc-2.11/debian/patches/sh4/submitted-set_fpscr.diff 2010-01-30 18:40:41 UTC (rev 4111)
@@ -0,0 +1,17 @@
+--- a/sysdeps/sh/sh4/fpu/fpu_control.h
++++ b/sysdeps/sh/sh4/fpu/fpu_control.h
+@@ -45,6 +45,14 @@
+ #define _FPU_GETCW(cw) __asm__ ("sts fpscr,%0" : "=r" (cw))
+
+ #if defined __GNUC__
++/* Allow the use in C++ code. */
++#ifdef __cplusplus
++extern "C" {
++#endif
++extern void __set_fpscr(unsigned long);
++#ifdef __cplusplus
++}
++#endif /* C++ */
+ #define _FPU_SETCW(cw) __set_fpscr ((cw))
+ #else
+ #define _FPU_SETCW(cw) __asm__ ("lds %0,fpscr" : : "r" (cw))
Reply to: