direct-move.h: Fix header for executable tests.
authorPat Haugen <pthaugen@us.ibm.com>
Wed, 23 Oct 2013 21:40:56 +0000 (21:40 +0000)
committerPat Haugen <pthaugen@gcc.gnu.org>
Wed, 23 Oct 2013 21:40:56 +0000 (21:40 +0000)
* gcc.target/powerpc/direct-move.h: Fix header for executable tests.

From-SVN: r203994

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/direct-move.h

index e323a24..e9f3d5b 100644 (file)
@@ -1,3 +1,7 @@
+2013-10-23  Pat Haugen  <pthaugen@us.ibm.com>
+
+       * gcc.target/powerpc/direct-move.h: Fix header for executable tests.
+
 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/58775
index 4e84fd6..c1709e6 100644 (file)
@@ -1,5 +1,7 @@
 /* Test functions for direct move support.  */
 
+#include <math.h>
+extern void abort (void);
 
 void __attribute__((__noinline__))
 copy (TYPE *a, TYPE *b)
@@ -107,7 +109,7 @@ const struct test_struct test_functions[] = {
 void __attribute__((__noinline__))
 test_value (TYPE a)
 {
-  size_t i;
+  long i;
 
   for (i = 0; i < sizeof (test_functions) / sizeof (test_functions[0]); i++)
     {
@@ -123,8 +125,7 @@ test_value (TYPE a)
 int
 main (void)
 {
-  size_t i;
-  long j;
+  long i,j;
   union {
     TYPE value;
     unsigned char bytes[sizeof (TYPE)];