From: Patrick Marlier Date: Fri, 6 Jan 2012 21:58:44 +0000 (+0000) Subject: re PR testsuite/51655 (FAIL: c-c++-common/tm/memcpy-1.c (test for excess errors)) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ee2f8308a5ff5205738cda31d3dd4e2b1427148;p=gcc.git re PR testsuite/51655 (FAIL: c-c++-common/tm/memcpy-1.c (test for excess errors)) PR testsuite/51655 * c-c++-common/tm/memcpy-1.c: Declare memcpy instead of including . From-SVN: r182972 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e96146d231c..8fc06e4c6f5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-01-06 Patrick Marlier + + PR testsuite/51655 + * c-c++-common/tm/memcpy-1.c: Declare memcpy instead of + including . + 2012-01-06 Jason Merrill * g++.dg/abi/mangle51.C: New. diff --git a/gcc/testsuite/c-c++-common/tm/memcpy-1.c b/gcc/testsuite/c-c++-common/tm/memcpy-1.c index fa841b26164..873e14bb1bc 100644 --- a/gcc/testsuite/c-c++-common/tm/memcpy-1.c +++ b/gcc/testsuite/c-c++-common/tm/memcpy-1.c @@ -1,6 +1,10 @@ /* { dg-do compile } */ /* { dg-options "-fgnu-tm" } */ -#include +typedef __SIZE_TYPE__ size_t; +#ifdef __cplusplus +extern "C" +#endif +void *memcpy (void *__restrict, const void *__restrict, size_t); __attribute__((transaction_safe)) void *wmemcpy(void *dest, const void *src, size_t n)