]> sourceware.org Git - glibc.git/commitdiff
tile: Consolidate NPTL/non versions of vfork
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 11 Jun 2014 19:52:53 +0000 (15:52 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Wed, 11 Jun 2014 19:52:53 +0000 (15:52 -0400)
ChangeLog
sysdeps/unix/sysv/linux/tile/pt-vfork.S [deleted file]
sysdeps/unix/sysv/linux/tile/pt-vfork.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tile/vfork.S

index 82a62a08955a332b1e45a0bd2b145be8c5ab1e73..d86e73963dd9fb5e21b1a28326630337226812aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
+
+       * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
+       * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
+       * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
+       conditional code always true.
+       (__libc_vfork): New alias.
+
 2014-06-11  Roland McGrath  <roland@hack.frob.com>
 
        * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
diff --git a/sysdeps/unix/sysv/linux/tile/pt-vfork.S b/sysdeps/unix/sysv/linux/tile/pt-vfork.S
deleted file mode 100644 (file)
index a6ccb1f..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#define PT_VFORK 1   /* pid is never zero */
-#include "vfork.S"
diff --git a/sysdeps/unix/sysv/linux/tile/pt-vfork.c b/sysdeps/unix/sysv/linux/tile/pt-vfork.c
new file mode 100644 (file)
index 0000000..5fbc652
--- /dev/null
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/aarch64/pt-vfork.c>
index 014cccf7e2948d7935e8c7c9264066295e3ffdbc..bf7bdf4ac20e408b9443ab7e6feab24787784412 100644 (file)
@@ -38,9 +38,7 @@ ENTRY (__vfork)
         shli r13, r13, 31              /* Build 0x80000000. */
        }
        sub r12, zero, r12              /* Negate it.  */
-#ifndef PT_VFORK
        CMOVEQZ r12, r12, r13           /* Replace zero pids.  */
-#endif
        ST4 r11, r12                    /* Store the temporary PID.  */
 
        {
@@ -67,9 +65,7 @@ ENTRY (__vfork)
         CMPEQ r13, r12, r12            /* Test for that value. */
         sub r12, zero, r12             /* Re-negate it.  */
        }
-#ifndef PT_VFORK
        CMOVNEZ r12, r13, zero          /* Replace zero pids.  */
-#endif
        ST4 r11, r12                    /* Restore the PID.  */
 1:
        BNEZ r1, 0f
@@ -78,3 +74,4 @@ PSEUDO_END (__vfork)
 libc_hidden_def (__vfork)
 
 weak_alias (__vfork, vfork)
+strong_alias (__vfork, __libc_vfork)
This page took 0.122045 seconds and 5 git commands to generate.