public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] testsuite: Fix morello/blockmode_copies.c test
@ 2021-09-21 9:14 Matthew Malcomson
0 siblings, 0 replies; only message in thread
From: Matthew Malcomson @ 2021-09-21 9:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ecfe3af3308c75c155c9c9d00663f9abc9407650
commit ecfe3af3308c75c155c9c9d00663f9abc9407650
Author: Alex Coplan <alex.coplan@arm.com>
Date: Thu Aug 26 11:24:09 2021 +0100
testsuite: Fix morello/blockmode_copies.c test
The test was calling memcpy without including <string.h>: this led to
warnings since we saw an incompatible implicit definition of memcpy.
Change the test to use __builtin_memcpy instead.
Diff:
---
gcc/testsuite/gcc.target/aarch64/morello/blockmode_copies.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/gcc/testsuite/gcc.target/aarch64/morello/blockmode_copies.c b/gcc/testsuite/gcc.target/aarch64/morello/blockmode_copies.c
index 5c44b95019d..b33d73a3012 100644
--- a/gcc/testsuite/gcc.target/aarch64/morello/blockmode_copies.c
+++ b/gcc/testsuite/gcc.target/aarch64/morello/blockmode_copies.c
@@ -1,13 +1,13 @@
/* { dg-do compile { target aarch64*-*-* } } */
/* { dg-additional-options "-O3" } */
-void e(char *x) { memcpy(x, x + 8, 8); }
+void e(char *x) { __builtin_memcpy(x, x + 8, 8); }
-void f(char *x) { memcpy(x, x + 16, 16); }
+void f(char *x) { __builtin_memcpy(x, x + 16, 16); }
-void g(char *x) { memcpy(x, x + 32, 32); }
+void g(char *x) { __builtin_memcpy(x, x + 32, 32); }
-void h(char *x) { memcpy(x, x + 36, 36); }
+void h(char *x) { __builtin_memcpy(x, x + 36, 36); }
int fun(int x)
{
@@ -16,4 +16,4 @@ int fun(int x)
goto *a[x++];
label2:
return x;
-}
\ No newline at end of file
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-21 9:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-21 9:14 [gcc(refs/vendors/ARM/heads/morello)] testsuite: Fix morello/blockmode_copies.c test Matthew Malcomson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).