summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2011-04-22 16:21:30 -0700
committerAustin Foxley <austinf@cetoncorp.com>2011-04-22 16:21:30 -0700
commit542c67dd8e8b742b5dff8f8a509e5f0752ec9b25 (patch)
treecf91b4f4fbe893cfebb60d789aaff67acbb7d6a0
parent7b5b79f09f0bffe1fccda00d4c5cdf7a7be45413 (diff)
sparc: don't access fp registers when configured for no fpu
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
-rw-r--r--libc/sysdeps/linux/sparc/soft-fp/sfp-machine.h2
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 f1211705e..ecf9506b6 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