From: Marek Polacek Date: Mon, 6 Oct 2014 12:35:06 +0000 (+0000) Subject: memcpy-1.c: Declare getpagesize. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9918374125a5d9745ebe6097f04d9eac47769600;p=gcc.git memcpy-1.c: Declare getpagesize. * testsuite/libitm.c/memcpy-1.c: Declare getpagesize. * testsuite/libitm.c/memset-1.c: Likewise. From-SVN: r215931 --- diff --git a/libitm/ChangeLog b/libitm/ChangeLog index ce1cc219ae2..f35a630c950 100644 --- a/libitm/ChangeLog +++ b/libitm/ChangeLog @@ -1,3 +1,8 @@ +2014-10-06 Marek Polacek + + * testsuite/libitm.c/memcpy-1.c: Declare getpagesize. + * testsuite/libitm.c/memset-1.c: Likewise. + 2014-07-24 Richard Henderson * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc diff --git a/libitm/testsuite/libitm.c/memcpy-1.c b/libitm/testsuite/libitm.c/memcpy-1.c index 03b381285df..32a4b6c3d54 100644 --- a/libitm/testsuite/libitm.c/memcpy-1.c +++ b/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 a/libitm/testsuite/libitm.c/memset-1.c b/libitm/testsuite/libitm.c/memset-1.c index 11aea458ca1..91ae2857cb8 100644 --- a/libitm/testsuite/libitm.c/memset-1.c +++ b/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