diff options
author | Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com> | 2017-04-11 14:18:35 -0300 |
---|---|---|
committer | Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> | 2017-04-11 17:13:54 -0300 |
commit | 001649fd18712a8d508a21781e8059ef1e9bcecf (patch) | |
tree | b203b01d992635bd616db71266498043f00d9199 /sysdeps/powerpc/powerpc64/multiarch | |
parent | 3bc426e156c6952a1b7e32435c308aaab76616a1 (diff) | |
download | glibc-001649fd18712a8d508a21781e8059ef1e9bcecf.tar.gz glibc-001649fd18712a8d508a21781e8059ef1e9bcecf.tar.xz glibc-001649fd18712a8d508a21781e8059ef1e9bcecf.zip |
powerpc: refactor strnlen and strlen IFUNC.
Clean up the IFUNC implementations for powerpc in order to remove unneeded macro definitions. Tested on ppc64le with and without --disable-multi-arch flag. * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Define the strlen implementation name and remove unneeded macros definition. * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Define the strnlen implementation name and remove unneeded macros definition. * sysdeps/powerpc/powerpc64/power7/strlen.S: Set a default function name if not defined and pass as parameter to macros accordingly. * sysdeps/powerpc/powerpc64/power7/strnlen.S: Likewise. * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise. * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch')
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S | 15 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S | 15 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S | 15 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S | 15 |
4 files changed, 4 insertions, 56 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S b/sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S index b3f053642a..333496efa5 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S +++ b/sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S @@ -18,20 +18,7 @@ #include <sysdep.h> -#undef ENTRY -#define ENTRY(name) \ - .section ".text"; \ - ENTRY_2(__strlen_power7) \ - .align ALIGNARG(2); \ - BODY_LABEL(__strlen_power7): \ - cfi_startproc; \ - LOCALENTRY(__strlen_power7) - -#undef END -#define END(name) \ - cfi_endproc; \ - TRACEBACK(__strlen_power7) \ - END_2(__strlen_power7) +#define STRLEN __strlen_power7 #undef libc_hidden_builtin_def #define libc_hidden_builtin_def(name) diff --git a/sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S b/sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S index ff9032f243..b4deea5f93 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S +++ b/sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S @@ -18,20 +18,7 @@ #include <sysdep.h> -#undef EALIGN -#define EALIGN(name, alignt, words) \ - .section ".text"; \ - ENTRY_2(__strlen_power8) \ - .align ALIGNARG(alignt); \ - EALIGN_W_##words; \ - BODY_LABEL(__strlen_power8): \ - cfi_startproc; \ - LOCALENTRY(__strlen_power8) -#undef END -#define END(name) \ - cfi_endproc; \ - TRACEBACK(__strlen_power8) \ - END_2(__strlen_power8) +#define STRLEN __strlen_power8 #undef libc_hidden_builtin_def #define libc_hidden_builtin_def(name) diff --git a/sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S b/sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S index bec8036ab1..13231b8c64 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S +++ b/sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S @@ -19,20 +19,7 @@ #include <sysdep.h> #if defined SHARED && IS_IN (libc) -# undef ENTRY -# define ENTRY(name) \ - .section ".text"; \ - ENTRY_2(__strlen_ppc) \ - .align ALIGNARG(2); \ - BODY_LABEL(__strlen_ppc): \ - cfi_startproc; \ - LOCALENTRY(__strlen_ppc) - -# undef END -# define END(name) \ - cfi_endproc; \ - TRACEBACK(__strlen_ppc) \ - END_2(__strlen_ppc) +# define STRLEN __strlen_ppc # undef libc_hidden_builtin_def # define libc_hidden_builtin_def(name) diff --git a/sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S b/sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S index ec6ce3870a..2f0a183e31 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S +++ b/sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S @@ -18,20 +18,7 @@ #include <sysdep.h> -#undef ENTRY -#define ENTRY(name) \ - .section ".text"; \ - ENTRY_2(__strnlen_power7) \ - .align ALIGNARG(2); \ - BODY_LABEL(__strnlen_power7): \ - cfi_startproc; \ - LOCALENTRY(__strnlen_power7) - -#undef END -#define END(name) \ - cfi_endproc; \ - TRACEBACK(__strnlen_power7) \ - END_2(__strnlen_power7) +#define STRNLEN __strnlen_power7 #undef libc_hidden_builtin_def #define libc_hidden_builtin_def(name) |