405-dlmzb-strlen-1.c: Explicitly align arg.

* gcc.target/powerpc/405-dlmzb-strlen-1.c: Explicitly align arg.
	* gcc.target/powerpc/440-dlmzb-strlen-1.c: Ditto.

From-SVN: r219061
This commit is contained in:
Segher Boessenkool 2014-12-24 19:26:49 +01:00 committed by Segher Boessenkool
parent e885091886
commit 285470983b
3 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2014-12-24 Segher Boessenkool <segher@kernel.crashing.org>
* gcc.target/powerpc/405-dlmzb-strlen-1.c: Explicitly align arg.
* gcc.target/powerpc/440-dlmzb-strlen-1.c: Ditto.
2014-12-24 Andrew Stubbs <ams@codesourcery.com>
PR testsuite/64032

View File

@ -12,8 +12,10 @@ typedef __SIZE_TYPE__ size_t;
size_t strlen(const char *);
char s[100] __attribute__ ((aligned (8)));
size_t
strlen8(const long long *s)
strlen8(void)
{
return strlen((const char *)s);
return strlen(s);
}

View File

@ -12,8 +12,10 @@ typedef __SIZE_TYPE__ size_t;
size_t strlen(const char *);
char s[100] __attribute__ ((aligned (8)));
size_t
strlen8(const long long *s)
strlen8(void)
{
return strlen((const char *)s);
return strlen(s);
}