Commit c19d33d8 by Pat Haugen Committed by Pat Haugen

direct-move.h: Fix header for executable tests.

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

From-SVN: r203994
parent 89ac0797
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> 2013-10-23 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/58775 PR tree-optimization/58775
......
/* Test functions for direct move support. */ /* Test functions for direct move support. */
#include <math.h>
extern void abort (void);
void __attribute__((__noinline__)) void __attribute__((__noinline__))
copy (TYPE *a, TYPE *b) copy (TYPE *a, TYPE *b)
...@@ -107,7 +109,7 @@ const struct test_struct test_functions[] = { ...@@ -107,7 +109,7 @@ const struct test_struct test_functions[] = {
void __attribute__((__noinline__)) void __attribute__((__noinline__))
test_value (TYPE a) test_value (TYPE a)
{ {
size_t i; long i;
for (i = 0; i < sizeof (test_functions) / sizeof (test_functions[0]); i++) for (i = 0; i < sizeof (test_functions) / sizeof (test_functions[0]); i++)
{ {
...@@ -123,8 +125,7 @@ test_value (TYPE a) ...@@ -123,8 +125,7 @@ test_value (TYPE a)
int int
main (void) main (void)
{ {
size_t i; long i,j;
long j;
union { union {
TYPE value; TYPE value;
unsigned char bytes[sizeof (TYPE)]; unsigned char bytes[sizeof (TYPE)];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment