diff options
author | Andrew Stubbs <ams@codesourcery.com> | 2009-04-06 11:17:36 +0000 |
---|---|---|
committer | Andrew Stubbs <ams@gcc.gnu.org> | 2009-04-06 11:17:36 +0000 |
commit | 5020dbd68d09515ff61949f10e885de79274cbd2 (patch) | |
tree | beeb44902b794c9316a78524f325e81e25265288 | |
parent | 6bdf8c2e535788b864e7a79c0aa5a7dc7b807c11 (diff) | |
download | gcc-5020dbd68d09515ff61949f10e885de79274cbd2.zip gcc-5020dbd68d09515ff61949f10e885de79274cbd2.tar.gz gcc-5020dbd68d09515ff61949f10e885de79274cbd2.tar.bz2 |
sh4a-memmovua.c: Include string.h instead of stdlib.h.
2009-04-06 Andrew Stubbs <ams@codesourcery.com>
* gcc.target/sh/sh4a-memmovua.c: Include string.h instead of stdlib.h.
2009-04-06 Andrew Stubbs <ams@codesourcery.com>
* gcc.target/sh/sh4a-bitmovua.c (y0): Rename to y_0 to avoid a clash
with the built-in y0, and the subsequent warning.
(y1): Likewise, rename to y_1.
From-SVN: r145587
-rw-r--r-- | gcc/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/sh/sh4a-bitmovua.c | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/sh/sh4a-memmovua.c | 2 |
3 files changed, 15 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3bedcb7..4518dc2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2009-04-06 Andrew Stubbs <ams@codesourcery.com> + + * gcc.target/sh/sh4a-memmovua.c: Include string.h instead of stdlib.h. + +2009-04-06 Andrew Stubbs <ams@codesourcery.com> + + * gcc.target/sh/sh4a-bitmovua.c (y0): Rename to y_0 to avoid a clash + with the built-in y0, and the subsequent warning. + (y1): Likewise, rename to y_1. + 2009-04-06 Janus Weil <janus@gcc.gnu.org> PR fortran/39414 diff --git a/gcc/testsuite/gcc.target/sh/sh4a-bitmovua.c b/gcc/testsuite/gcc.target/sh/sh4a-bitmovua.c index b7081bf..761c7b0 100644 --- a/gcc/testsuite/gcc.target/sh/sh4a-bitmovua.c +++ b/gcc/testsuite/gcc.target/sh/sh4a-bitmovua.c @@ -35,15 +35,15 @@ long long f4() { } /* Aligned. */ -struct u0 { unsigned long long d : 32; } y0; +struct u0 { unsigned long long d : 32; } y_0; unsigned long long g0() { - return y0.d; + return y_0.d; } /* Unaligned load. */ -struct u1 { long long c : 8; unsigned long long d : 32; } y1; +struct u1 { long long c : 8; unsigned long long d : 32; } y_1; unsigned long long g1() { - return y1.d; + return y_1.d; } /* Unaligned load. */ diff --git a/gcc/testsuite/gcc.target/sh/sh4a-memmovua.c b/gcc/testsuite/gcc.target/sh/sh4a-memmovua.c index 6892792..ec5c0bd 100644 --- a/gcc/testsuite/gcc.target/sh/sh4a-memmovua.c +++ b/gcc/testsuite/gcc.target/sh/sh4a-memmovua.c @@ -5,7 +5,7 @@ /* { dg-final { scan-assembler-times "\tmovua\\.l\t(.*)+" 2 } } */ #ifdef __SH4A__ -#include <stdlib.h> +#include <string.h> struct s { int i; char a[10], b[10]; } x; int f() { |