]> sourceware.org Git - glibc.git/commitdiff
Do not clobber r12 for ia64 syscalls.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 17 Dec 2018 18:31:50 +0000 (18:31 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 17 Dec 2018 18:31:50 +0000 (18:31 +0000)
GCC mainline now gives errors for an asm that clobbers the stack
pointer.  According to
<https://gcc.gnu.org/ml/gcc-patches/2018-12/msg00932.html> GCC
previously ignored such a clobber; thus, this patch removes it from
the clobbers for ia64 syscalls.

Tested with build-many-glibcs.py for ia64-linux-gnu.

* sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
Do not clobber r12.

ChangeLog
sysdeps/unix/sysv/linux/ia64/sysdep.h

index 16ca8b7b278204b5ff3166b7595d215659c89d41..10eba56bb6c5773395b3e2f8db69abe397ffb5cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2018-12-17  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
+       Do not clobber r12.
+
        * scripts/glibcextract.py (compare_macro_consts): Take parameters
        to allow extra macros from first or second sources.
        * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
index f8f8d900c63a9ec3dc8e7df6e07c1230ecb84498..0505b966d26e59c8f31cffc122a42e330d98d1ca 100644 (file)
 #define ASM_CLOBBERS_5 ASM_CLOBBERS_6, "out5"
 #define ASM_CLOBBERS_6_COMMON  , "out6", "out7",                       \
   /* Non-stacked integer registers, minus r8, r10, r15.  */            \
-  "r2", "r3", "r9", "r11", "r12", "r13", "r14", "r16", "r17", "r18",   \
+  "r2", "r3", "r9", "r11", "r13", "r14", "r16", "r17", "r18",          \
   "r19", "r20", "r21", "r22", "r23", "r24", "r25", "r26", "r27",       \
   "r28", "r29", "r30", "r31",                                          \
   /* Predicate registers.  */                                          \
This page took 0.068123 seconds and 5 git commands to generate.