Patch: Add __restrict to string.h
Peter Rosin
peda@lysator.liu.se
Wed Aug 14 12:26:00 GMT 2013
On 2013-07-18 19:46, Joel Sherrill wrote:
> Index: libc/machine/xscale/memcpy.c
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/machine/xscale/memcpy.c,v
> retrieving revision 1.2
> diff -u -r1.2 memcpy.c
> --- libc/machine/xscale/memcpy.c 20 Apr 2002 00:29:51 -0000 1.2
> +++ libc/machine/xscale/memcpy.c 18 Jul 2013 17:44:19 -0000
> @@ -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 (
Missing an underscore? I.e. __restrict instead of _restrict?
Cheers,
Peter
More information about the Newlib
mailing list