From 285470983b6dda9f600e3dc20f134a925de61ddf Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Wed, 24 Dec 2014 19:26:49 +0100 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/powerpc/405-dlmzb-strlen-1.c | 6 ++++-- gcc/testsuite/gcc.target/powerpc/440-dlmzb-strlen-1.c | 6 ++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ef6a8aa3c2d..d0bee5d1553 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-12-24 Segher Boessenkool + + * 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 PR testsuite/64032 diff --git a/gcc/testsuite/gcc.target/powerpc/405-dlmzb-strlen-1.c b/gcc/testsuite/gcc.target/powerpc/405-dlmzb-strlen-1.c index b06a74f646e..52675bade32 100644 --- a/gcc/testsuite/gcc.target/powerpc/405-dlmzb-strlen-1.c +++ b/gcc/testsuite/gcc.target/powerpc/405-dlmzb-strlen-1.c @@ -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); } diff --git a/gcc/testsuite/gcc.target/powerpc/440-dlmzb-strlen-1.c b/gcc/testsuite/gcc.target/powerpc/440-dlmzb-strlen-1.c index d255bd785f6..03734663c96 100644 --- a/gcc/testsuite/gcc.target/powerpc/440-dlmzb-strlen-1.c +++ b/gcc/testsuite/gcc.target/powerpc/440-dlmzb-strlen-1.c @@ -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); } -- 2.30.2