This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
__set_fpscr() prototype
- From: Mike Frysinger <vapier at gentoo dot org>
- To: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 16 Feb 2009 00:34:14 -0500
- Subject: __set_fpscr() prototype
since gcc isnt going to provide a prototype for the __set_fpscr() function,
then should glibc do it ?
-mike
--- a/sysdeps/sh/sh4/fpu/fpu_control.h
+++ b/sysdeps/sh/sh4/fpu/fpu_control.h
@@ -45,6 +45,7 @@ typedef unsigned int fpu_control_t;
#define _FPU_GETCW(cw) __asm__ ("sts fpscr,%0" : "=r" (cw))
#if defined __GNUC__
+extern void __set_fpscr(unsigned long);
#define _FPU_SETCW(cw) __set_fpscr ((cw))
#else
#define _FPU_SETCW(cw) __asm__ ("lds %0,fpscr" : : "r" (cw))