From f3d17b5e71df5bae6d5fe34319058473aa6678d4 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 29 Dec 2016 19:51:29 +0100 Subject: [PATCH] memcpy-1.c: Include mpx-check.h. * gcc.target/i386/mpx/memcpy-1.c: Include mpx-check.h. (main): Renamed to ... (mpx_test): ... this. Add argc and argv arguments. From-SVN: r243965 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5e6db289f4b..46d47323d69 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-12-29 Jakub Jelinek + + * gcc.target/i386/mpx/memcpy-1.c: Include mpx-check.h. + (main): Renamed to ... + (mpx_test): ... this. Add argc and argv arguments. + 2016-12-29 Martin Liska PR c/78933 diff --git a/gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c b/gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c index 169134829aa..6ecbdc1a322 100644 --- a/gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c +++ b/gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c @@ -8,6 +8,7 @@ #include #include +#include "mpx-check.h" char s[10]; char d[10]; @@ -16,7 +17,7 @@ __attribute__((noinline)) char* foo(char* dst, char* src, size_t size) { return memcpy(dst, src, size); } -int main() { +int mpx_test(int argc, const char **argv) { char* r = foo(d, s, 11); printf("r = %p\n", r); return 0; -- 2.30.2