[git commit master 1/1] sh_fpu: Do not allow inclusion of fpu_control on not SH4 core

Carmelo Amoroso carmelo.amoroso at st.com
Wed Dec 15 17:00:16 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=6c6720bb831b14c77d3eb8f5f7061e095df6ea47
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Instead of emitting a warning even when compiling for SH4, stop
compilation with an #error directive when not on SH4 core.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>
---
 libc/sysdeps/linux/sh/fpu_control.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/libc/sysdeps/linux/sh/fpu_control.h b/libc/sysdeps/linux/sh/fpu_control.h
index cbd889e..da01725 100644
--- a/libc/sysdeps/linux/sh/fpu_control.h
+++ b/libc/sysdeps/linux/sh/fpu_control.h
@@ -20,7 +20,9 @@
 #ifndef _FPU_CONTROL_H
 #define _FPU_CONTROL_H
 
-#warning This file is only correct for sh4
+#ifndef __SH4__
+#error This file is only correct for sh4
+#endif
 
 /* masking of interrupts */
 #define _FPU_MASK_VM	0x0800	/* Invalid operation */
-- 
1.7.2.2



More information about the uClibc-cvs mailing list