[git commit future] sparc: don't access fp registers when configured for no fpu
Austin Foxley
austinf at cetoncorp.com
Fri Apr 22 23:21:30 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=542c67dd8e8b742b5dff8f8a509e5f0752ec9b25
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
libc/sysdeps/linux/sparc/soft-fp/sfp-machine.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libc/sysdeps/linux/sparc/soft-fp/sfp-machine.h b/libc/sysdeps/linux/sparc/soft-fp/sfp-machine.h
index f121170..ecf9506 100644
--- a/libc/sysdeps/linux/sparc/soft-fp/sfp-machine.h
+++ b/libc/sysdeps/linux/sparc/soft-fp/sfp-machine.h
@@ -187,6 +187,7 @@
#define _FP_DECL_EX fpu_control_t _fcw
+#ifdef __UCLIBC_HAS_FPU__
#define FP_INIT_ROUNDMODE \
do { \
_FPU_GETCW(_fcw); \
@@ -211,3 +212,4 @@ do { \
else \
___Q_simulate_exceptions (_fex); \
} while (0)
+#endif
--
1.7.3.4
More information about the uClibc-cvs
mailing list