This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, testsuite committed] Fix powerpc direct-move.h


The following fixes the gcc.target/powerpc/direct-move-*2.c executable test failures. Committed as obvious.


2013-10-23  Pat Haugen  <pthaugen@us.ibm.com>

    * gcc.target/powerpc/direct-move.h: Fix header for executable tests.

Index: gcc/testsuite/gcc.target/powerpc/direct-move.h
===================================================================
--- gcc/testsuite/gcc.target/powerpc/direct-move.h    (revision 203993)
+++ gcc/testsuite/gcc.target/powerpc/direct-move.h    (working copy)
@@ -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)];


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]