Commit 5020dbd6 by Andrew Stubbs Committed by Andrew Stubbs

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
parent 6bdf8c2e
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> 2009-04-06 Janus Weil <janus@gcc.gnu.org>
PR fortran/39414 PR fortran/39414
......
...@@ -35,15 +35,15 @@ long long f4() { ...@@ -35,15 +35,15 @@ long long f4() {
} }
/* Aligned. */ /* Aligned. */
struct u0 { unsigned long long d : 32; } y0; struct u0 { unsigned long long d : 32; } y_0;
unsigned long long g0() { unsigned long long g0() {
return y0.d; return y_0.d;
} }
/* Unaligned load. */ /* 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() { unsigned long long g1() {
return y1.d; return y_1.d;
} }
/* Unaligned load. */ /* Unaligned load. */
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
/* { dg-final { scan-assembler-times "\tmovua\\.l\t(.*)+" 2 } } */ /* { dg-final { scan-assembler-times "\tmovua\\.l\t(.*)+" 2 } } */
#ifdef __SH4A__ #ifdef __SH4A__
#include <stdlib.h> #include <string.h>
struct s { int i; char a[10], b[10]; } x; struct s { int i; char a[10], b[10]; } x;
int f() { int f() {
......
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