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:
parent
e885091886
commit
285470983b
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user