]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sh4a-memmovua.c: Include string.h instead of stdlib.h.
authorAndrew Stubbs <ams@codesourcery.com>
Mon, 6 Apr 2009 11:17:36 +0000 (11:17 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Mon, 6 Apr 2009 11:17:36 +0000 (11:17 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/sh4a-bitmovua.c
gcc/testsuite/gcc.target/sh/sh4a-memmovua.c

index 3bedcb74caf8e6b7f7af1173174906f837c51f98..4518dc21fd2d7d6089cf720e2ada11c29fd6f586 100644 (file)
@@ -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
index b7081bf7186937629243b50c00b90398a31cf135..761c7b0b5df945451ac3199a016817ea8a3d3110 100644 (file)
@@ -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.  */
index 689279298548bef7922a131566e15531abc484ef..ec5c0bdab59292e100ab18d4912b64bcf4989f49 100644 (file)
@@ -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() {