1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/ports-2.10.1/590-sh-set-fpscr-proto.patch Fri May 25 19:09:43 2012 +0200
1.3 @@ -0,0 +1,13 @@
1.4 +
1.5 +
1.6 +diff -durN glibc-2.10.1.orig/sysdeps/sh/sh4/fpu/fpu_control.h glibc-2.10.1/sysdeps/sh/sh4/fpu/fpu_control.h
1.7 +--- glibc-2.10.1.orig/sysdeps/sh/sh4/fpu/fpu_control.h 2001-07-06 06:56:04.000000000 +0200
1.8 ++++ glibc-2.10.1/sysdeps/sh/sh4/fpu/fpu_control.h 2009-11-13 00:51:26.000000000 +0100
1.9 +@@ -45,6 +45,7 @@
1.10 + #define _FPU_GETCW(cw) __asm__ ("sts fpscr,%0" : "=r" (cw))
1.11 +
1.12 + #if defined __GNUC__
1.13 ++extern void __set_fpscr(unsigned long);
1.14 + #define _FPU_SETCW(cw) __set_fpscr ((cw))
1.15 + #else
1.16 + #define _FPU_SETCW(cw) __asm__ ("lds %0,fpscr" : : "r" (cw))