From b363e7266cb735c101a16cc27585d8a78a731340 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sun, 6 Aug 2017 08:26:12 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ .../gcc.c-torture/execute/builtins/memops-asm-lib.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- 2.30.2