PowerPC: Fix compiler warnings

This patch fixes some compiler due trailing data in #undef directives
and due missing prototypes.
This commit is contained in:
Adhemerval Zanella 2014-07-08 08:49:54 -05:00
parent 91f4b564bd
commit e7f95bb5f0
4 changed files with 12 additions and 3 deletions

View File

@ -1,5 +1,12 @@
2014-07-08 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
* 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.

View File

@ -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

View File

@ -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

View File

@ -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 <sysdeps/powerpc/strcat.c>