From 542c67dd8e8b742b5dff8f8a509e5f0752ec9b25 Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Fri, 22 Apr 2011 16:21:30 -0700 Subject: sparc: don't access fp registers when configured for no fpu Signed-off-by: Austin Foxley --- libc/sysdeps/linux/sparc/soft-fp/sfp-machine.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/sysdeps/linux') 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 -- cgit v1.2.3