diff options
| -rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/testsuite/c-c++-common/tm/memcpy-1.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e96146d..8fc06e4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-01-06 Patrick Marlier <patrick.marlier@gmail.com> + + PR testsuite/51655 + * c-c++-common/tm/memcpy-1.c: Declare memcpy instead of + including <string.h>. + 2012-01-06 Jason Merrill <jason@redhat.com> * 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 fa841b2..873e14b 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 <string.h> +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) |
