diff options
Diffstat (limited to 'sysdeps/powerpc/powerpc32/power4')
-rw-r--r-- | sysdeps/powerpc/powerpc32/power4/memcopy.h | 4 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c | 1 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/powerpc/powerpc32/power4/memcopy.h b/sysdeps/powerpc/powerpc32/power4/memcopy.h index d3752dcc1c..3431084449 100644 --- a/sysdeps/powerpc/powerpc32/power4/memcopy.h +++ b/sysdeps/powerpc/powerpc32/power4/memcopy.h @@ -110,3 +110,7 @@ ((byte *) dst_ep)[0] = __x; \ } \ } while (0) + +/* The powerpc memcpy implementation is safe to use for memmove. */ +#undef MEMCPY_OK_FOR_FWD_MEMMOVE +#define MEMCPY_OK_FOR_FWD_MEMMOVE 1 diff --git a/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c b/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c index 2861071bad..b14c3b193c 100644 --- a/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c +++ b/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c @@ -27,5 +27,4 @@ extern __typeof (memmove) __memmove_power7; #undef libc_hidden_builtin_def #define libc_hidden_builtin_def(name) -#define MEMCPY_OK_FOR_FWD_MEMMOVE 1 #include <string/memmove.c> diff --git a/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c b/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c index e323a4d736..d56b77a1db 100644 --- a/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c +++ b/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c @@ -30,5 +30,4 @@ extern __typeof (memmove) __memmove_ppc; __hidden_ver1 (__memmove_ppc, __GI_memmove, __memmove_ppc); #endif -#define MEMCPY_OK_FOR_FWD_MEMMOVE 1 #include <string/memmove.c> |