diff options
author | Alan Modra <amodra@gmail.com> | 2017-06-14 10:44:03 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-06-14 10:44:03 +0930 |
commit | 4b6e7667db6983fa953c1cac7671f68edacca0b4 (patch) | |
tree | addb9ae3b305993ecd017b003c1c1e2b1a45d073 /sysdeps/powerpc/powerpc64/multiarch | |
parent | fb499eb04e8aa897e2b97694be92a1506885c1df (diff) | |
download | glibc-4b6e7667db6983fa953c1cac7671f68edacca0b4.tar.gz glibc-4b6e7667db6983fa953c1cac7671f68edacca0b4.tar.xz glibc-4b6e7667db6983fa953c1cac7671f68edacca0b4.zip |
PowerPC64 sysdep.h tidy
.align on some targets takes a byte alignment, on others like powerpc, log2 of the byte alignment. It's a good idea to avoid .align, particularly since x86 and powerpc are different. This patch fixes the occurrences of .align in powerpc64/sysdep.h, renames DOT_LABEL since the macro doesn't have anything to do with adding dots, removes extraneous semicolons, and fixes some formatting. * sysdeps/powerpc/powerpc64/sysdep.h: Formatting. (FUNC_LABEL): Rename from DOT_LABEL. (ENTRY_1): Use FUNC_LABEL and remove leading space from label. Use .p2align rather than .align. (TRACEBACK, TRACEBACK_MASK): Use .p2align rather than .align. (ABORT_TRANSACTION): Likewise. (ENTRY_1, ENTRY_2, END_2, LOCALENTRY): Remove unnecessary semicolons, particularly at end. Add semicolon at invocation as necessary. (TRACEBACK, TRACEBACK_MASK, PSEUDO, PSEUDO_NOERRNO): Likewise. (PSEUDO_ERRVAL, PPC64_LOAD_FUNCPTR, OPD_ENT): Likewise. * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S (ENTRY, END): Adjust to suit.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch')
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S b/sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S index 23365a1446..a895dc6939 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S +++ b/sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S @@ -21,7 +21,7 @@ #undef ENTRY #define ENTRY(name) \ .section ".text"; \ - ENTRY_2(__strrchr_power8) \ + ENTRY_2(__strrchr_power8); \ .align ALIGNARG(2); \ BODY_LABEL(__strrchr_power8): \ cfi_startproc; \ @@ -30,7 +30,7 @@ #undef END #define END(name) \ cfi_endproc; \ - TRACEBACK(__strrchr_power8) \ + TRACEBACK(__strrchr_power8); \ END_2(__strrchr_power8) #undef libc_hidden_builtin_def |