From: Andrew Stubbs Date: Mon, 6 Apr 2009 11:17:36 +0000 (+0000) Subject: sh4a-memmovua.c: Include string.h instead of stdlib.h. X-Git-Tag: releases/gcc-4.5.0~6878 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5020dbd68d09515ff61949f10e885de79274cbd2;p=thirdparty%2Fgcc.git sh4a-memmovua.c: Include string.h instead of stdlib.h. 2009-04-06 Andrew Stubbs * gcc.target/sh/sh4a-memmovua.c: Include string.h instead of stdlib.h. 2009-04-06 Andrew Stubbs * 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3bedcb74caf8..4518dc21fd2d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2009-04-06 Andrew Stubbs + + * gcc.target/sh/sh4a-memmovua.c: Include string.h instead of stdlib.h. + +2009-04-06 Andrew Stubbs + + * 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 PR fortran/39414 diff --git a/gcc/testsuite/gcc.target/sh/sh4a-bitmovua.c b/gcc/testsuite/gcc.target/sh/sh4a-bitmovua.c index b7081bf71869..761c7b0b5df9 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 689279298548..ec5c0bdab592 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 +#include struct s { int i; char a[10], b[10]; } x; int f() {