From: Tom de Vries Date: Sun, 6 Aug 2017 08:26:12 +0000 (+0000) Subject: Fix my_memmove in gcc.c-torture/execute/builtins/memops-asm-lib.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b363e7266cb735c101a16cc27585d8a78a731340;p=gcc.git Fix my_memmove in gcc.c-torture/execute/builtins/memops-asm-lib.c 2017-08-06 Tom de Vries * gcc.c-torture/execute/builtins/memops-asm-lib.c (my_memmove): Fix return type. Add missing return. From-SVN: r250897 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8915a2b40a5..0397eaa44f0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-08-06 Tom de Vries + + * gcc.c-torture/execute/builtins/memops-asm-lib.c (my_memmove): Fix return + type. Add missing return. + 2017-08-06 Tom de Vries PR testsuite/81731 diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm-lib.c b/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm-lib.c index 25d4a40a67e..3baf7a64622 100644 --- a/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm-lib.c +++ b/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm-lib.c @@ -38,7 +38,7 @@ my_bcopy (const void *s, void *d, size_t n) } __attribute__ ((used)) -void +void * my_memmove (void *d, const void *s, size_t n) { char *dst = (char *) d; @@ -53,6 +53,8 @@ my_memmove (void *d, const void *s, size_t n) while (n--) *--dst = *--src; } + + return d; } /* LTO code is at the present to able to track that asm alias my_bcopy on builtin