On 24/10/14 12:50, Marek Polacek wrote:

diff --git a/gcc/testsuite/gcc.target/arm/aapcs/abitest.h 
b/gcc/testsuite/gcc.target/arm/aapcs/abitest.h
index 06a92c3..7bce58b 100644
--- a/gcc/testsuite/gcc.target/arm/aapcs/abitest.h
+++ b/gcc/testsuite/gcc.target/arm/aapcs/abitest.h
@@ -49,6 +49,8 @@
extern void abort (void);
+typedef unsigned int size_t;
+extern int memcmp (const void *s1, const void *s2, size_t n);
You can use __SIZE_TYPE__ and then you don't need the typedef.

ok, fixed, thanks for pointing this out.

committed the attached patch as obvious after talked with Ramana.

gcc/testsuite/
  * gcc.target/arm/aapcs/abitest.h: Declare memcpy.
diff --git a/gcc/testsuite/gcc.target/arm/aapcs/abitest.h b/gcc/testsuite/gcc.target/arm/aapcs/abitest.h
index 06a92c3..7bce58b 100644
--- a/gcc/testsuite/gcc.target/arm/aapcs/abitest.h
+++ b/gcc/testsuite/gcc.target/arm/aapcs/abitest.h
@@ -49,6 +49,7 @@
 
 
 extern void abort (void);
+extern int memcmp (const void *s1, const void *s2, __SIZE_TYPE__ n);
 
 __attribute__((naked))  void dumpregs () __asm("myfunc");
 __attribute__((naked))  void dumpregs ()

Reply via email to