This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, testsuite committed] Fix powerpc direct-move.h
- From: Pat Haugen <pthaugen at linux dot vnet dot ibm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 23 Oct 2013 16:47:44 -0500
- Subject: [PATCH, testsuite committed] Fix powerpc direct-move.h
- Authentication-results: sourceware.org; auth=none
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)];