Discussion:
[PATCH] libitm.c/ cleanup
Marek Polacek
2014-10-06 12:31:21 UTC
Permalink
This patch is a cleanup of tests in libitm.c/ directory.
See https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02656.html for more info.

Only two tests needed fixing this time around.

Tested on x86_64-linux: vanilla results == results with this patch ==
results with this patch and gnu11 as a default.

Applying to trunk.

2014-10-06 Marek Polacek <***@redhat.com>

* testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
* testsuite/libitm.c/memset-1.c: Likewise.

diff --git gcc/libitm/testsuite/libitm.c/memcpy-1.c gcc/libitm/testsuite/libitm.c/memcpy-1.c
index 03b3812..32a4b6c 100644
--- gcc/libitm/testsuite/libitm.c/memcpy-1.c
+++ gcc/libitm/testsuite/libitm.c/memcpy-1.c
@@ -32,6 +32,7 @@
static unsigned char *buf1, *buf2;
static size_t bufsize, page_size;
static int fail;
+int getpagesize (void);

static void
do_test (size_t align1, size_t align2, size_t len)
diff --git gcc/libitm/testsuite/libitm.c/memset-1.c gcc/libitm/testsuite/libitm.c/memset-1.c
index 11aea45..91ae285 100644
--- gcc/libitm/testsuite/libitm.c/memset-1.c
+++ gcc/libitm/testsuite/libitm.c/memset-1.c
@@ -32,6 +32,7 @@
static unsigned char *buf;
static size_t bufsize, page_size;
static int fail;
+int getpagesize (void);

#ifndef MAP_ANONYMOUS
# ifdef MAP_ANON

Marek

Loading...