diff options
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r-- | newlib/libc/machine/cris/memcpy.c | 2 | ||||
-rw-r--r-- | newlib/libc/machine/microblaze/strcpy.c | 6 | ||||
-rw-r--r-- | newlib/libc/machine/xscale/memcpy.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/newlib/libc/machine/cris/memcpy.c b/newlib/libc/machine/cris/memcpy.c index c7bd6ebdc..c7a1af957 100644 --- a/newlib/libc/machine/cris/memcpy.c +++ b/newlib/libc/machine/cris/memcpy.c @@ -40,7 +40,7 @@ __asm__ (".syntax no_register_prefix"); void * -memcpy(void *pdst, const void *psrc, size_t pn) +memcpy(void *__restrict pdst, const void *__restrict psrc, size_t pn) { /* Now we want the parameters put in special registers. Make sure the compiler is able to make something useful of this. diff --git a/newlib/libc/machine/microblaze/strcpy.c b/newlib/libc/machine/microblaze/strcpy.c index d5430a305..0819ee511 100644 --- a/newlib/libc/machine/microblaze/strcpy.c +++ b/newlib/libc/machine/microblaze/strcpy.c @@ -36,7 +36,7 @@ INDEX ANSI_SYNOPSIS #include <string.h> - char *strcpy(char *<[dst]>, const char *<[src]>); + char *strcpy(char *restrict <[dst]>, const char *restrict <[src]>); TRAD_SYNOPSIS #include <string.h> @@ -88,8 +88,8 @@ QUICKREF char* _DEFUN (strcpy, (dst0, src0), - char *dst0 _AND - _CONST char *src0) + char *__restrict dst0 _AND + _CONST char *__restrict src0) { #ifndef HAVE_HW_PCMP diff --git a/newlib/libc/machine/xscale/memcpy.c b/newlib/libc/machine/xscale/memcpy.c index 1a3297778..7de967fb9 100644 --- a/newlib/libc/machine/xscale/memcpy.c +++ b/newlib/libc/machine/xscale/memcpy.c @@ -8,7 +8,7 @@ #include "xscale.h" void * -memcpy (void *dst0, const void *src0, size_t len) +memcpy (void *__restrict dst0, const void *__restrict src0, size_t len) { int dummy; asm volatile ( |