diff mbox

[rs6000,testsuite] Fix failures for implicit function declaration

Message ID 54EE0864.8010006@linux.vnet.ibm.com
State New
Headers show

Commit Message

Pat Haugen Feb. 25, 2015, 5:37 p.m. UTC
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 <pthaugen@us.ibm.com>

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

Patch

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>