From e7f95bb5f0da035f0af98804e3ee4a8a88135623 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 8 Jul 2014 08:49:54 -0500 Subject: PowerPC: Fix compiler warnings This patch fixes some compiler due trailing data in #undef directives and due missing prototypes. --- ChangeLog | 7 +++++++ sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S | 2 +- sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S | 2 +- sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c | 4 +++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 67e8fe0329..39fce07ce3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2014-07-08 Adhemerval Zanella + * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S: + [weak_alias]: Fix compiler warning due trailing data. + * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: + [weak_alias]: Likewise. + * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile + warnigs due missing definition of __strcpy_power7 and __strlen_power7. + * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add memmove functions. diff --git a/sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S b/sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S index 930564ceea..0b00011ae3 100644 --- a/sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S +++ b/sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S @@ -30,7 +30,7 @@ cfi_endproc; \ ASM_SIZE_DIRECTIVE(__strcasecmp_power7) -#undef weak_alias(name, alias) +#undef weak_alias #define weak_alias(name, alias) #undef libc_hidden_builtin_def diff --git a/sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S b/sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S index 46733f5440..4b3ce5131a 100644 --- a/sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S +++ b/sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S @@ -30,7 +30,7 @@ cfi_endproc; \ ASM_SIZE_DIRECTIVE(__strcasecmp_l_power7) -#undef weak_alias(name, alias) +#undef weak_alias #define weak_alias(name, alias) #undef libc_hidden_builtin_def diff --git a/sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c b/sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c index ba9a46090f..628f8bd7a3 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c +++ b/sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c @@ -22,7 +22,9 @@ #undef libc_hidden_def #define libc_hidden_def(name) +extern typeof (strcpy) __strcpy_power7; +extern typeof (strlen) __strlen_power7; + #define strcpy __strcpy_power7 #define strlen __strlen_power7 - #include -- cgit 1.4.1