diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2010-06-14 09:39:44 +0200 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2010-06-14 09:39:44 +0200 |
commit | 3e0b19f27bba5c47cfe4ea836ef94aad687c14b4 (patch) | |
tree | 6beb74824f5834a7c80cc41c3315c73b0c599efb /libc/string/sh/sh4/memmove.c | |
parent | 3acd3c649d8a1cd0e662e0125547290a58773c09 (diff) |
sh4: Fixes for SH-4 without an FPU
This patch disables SH-4 optimizations that rely on the FPU when
building for variants that don't have an FPU, such as SH-4AL.
Signed-off-by: Andrew Stubbs <ams@codesourcery.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/string/sh/sh4/memmove.c')
-rw-r--r-- | libc/string/sh/sh4/memmove.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/string/sh/sh4/memmove.c b/libc/string/sh/sh4/memmove.c index 4d52db2ca..62fe8187d 100644 --- a/libc/string/sh/sh4/memmove.c +++ b/libc/string/sh/sh4/memmove.c @@ -7,8 +7,11 @@ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ -#include <string.h> +#ifndef __SH_FPU_ANY__ +#include "../../generic/memmove.c" +#else +#include <string.h> #define FPSCR_SR (1 << 20) #define STORE_FPSCR(x) __asm__ volatile("sts fpscr, %0" : "=r"(x)) @@ -115,3 +118,4 @@ void *memmove(void *dest, const void *src, size_t len) } libc_hidden_def(memmove) +#endif /*__SH_FPU_ANY__ */ |