The following patch fixes "excess errors" failures for implicit function declarations (memcmp/random) for the direct-move-*/pack01 tests. Tested on powerpc64le-unknown-linux-gnu.

Committed as obvious.


2015-02-25  Pat Haugen <pthau...@us.ibm.com>

gcc/testsuite:
        * gcc.target/powerpc/direct-move.h: Include string.h/stdlib.h.
        * gcc.target/powerpc/pack01.c: Include string.h.


Index: gcc.target/powerpc/direct-move.h
===================================================================
--- gcc.target/powerpc/direct-move.h    (revision 220981)
+++ gcc.target/powerpc/direct-move.h    (working copy)
@@ -1,6 +1,8 @@
 /* Test functions for direct move support.  */

 #include <math.h>
+#include <string.h>
+#include <stdlib.h>
 extern void abort (void);

 #ifndef VSX_REG_ATTR
Index: gcc.target/powerpc/pack01.c
===================================================================
--- gcc.target/powerpc/pack01.c    (revision 220981)
+++ gcc.target/powerpc/pack01.c    (working copy)
@@ -8,6 +8,7 @@
 #include <stddef.h>
 #include <stdlib.h>
 #include <altivec.h>
+#include <string.h>

 #ifdef DEBUG
 #include <stdio.h>

Reply via email to