]> sourceware.org Git - glibc.git/commitdiff
Remove the ptw-% patterns
authorFlorian Weimer <fweimer@redhat.com>
Wed, 14 Sep 2016 14:02:06 +0000 (16:02 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 14 Sep 2016 14:02:06 +0000 (16:02 +0200)
Nothing depends on the PTW macro anymore, so the mechanism to define
PTW for recompliations of libc routines is no longer needed.  The
source files are still recompiled for the nptl directory, just without
the “ptw-” prefix.

(Reducing the number of pattern rules in sysd-rules is critical for
improving make performance.)

ChangeLog
nptl/Makefile
sysdeps/ia64/nptl/Makefile
sysdeps/nacl/Makefile
sysdeps/nptl/Makeconfig
sysdeps/s390/nptl/Makefile
sysdeps/unix/sysv/linux/alpha/Makefile

index 46ca5fa70052c3ea299c711682a4e09ec91942e6..646c336dae48f0ae3201353a0a059bf0dc3d1ee5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2016-09-14  Florian Weimer  <fweimer@redhat.com>
+
+       Remove support for compiling wrappers with PTW.
+       * sysdeps/nptl/Makeconfig: Drop ptw- support.
+       * nptl/Makefile (pthread-compat-wrappers): Define.
+       (libpthread-routines): Use pthread-compat-wrappers.
+       * sysdeps/unix/sysv/linux/alpha/Makefile
+       (libpthread-routines, libpthread-shared-only-routines): Remove
+       ptw- prefix.
+       * sysdeps/s390/nptl/Makefile
+       (libpthread-routines, libpthread-shared-only-routines): Likewise.
+       * sysdeps/ia64/nptl/Makefile
+       (libpthread-routines, libpthread-shared-only-routines): Likewise.
+       * sysdeps/nacl/Makefile (libpthread-routines): Use
+       pthread-compat-wrappers to filter the routines list instead of the
+       ptw- prefix.
+
 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
 
        * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
index 2ddcd2b4e4dc3fccbc940c8b0e486ac6ee23079e..e8de1bc7e190ed6005e109b066a071540610bda5 100644 (file)
@@ -33,6 +33,18 @@ routines = alloca_cutoff forward libc-lowlevellock libc-cancellation \
           register-atfork unregister-atfork
 shared-only-routines = forward
 
+# We need to provide certain routines for compatibility with existing
+# binaries.
+pthread-compat-wrappers = \
+                     write read close fcntl accept \
+                     connect recv recvfrom send \
+                     sendto fsync lseek llseek \
+                     msync nanosleep open open64 pause \
+                     pread pread64 pwrite pwrite64 \
+                     tcdrain wait waitpid msgrcv msgsnd \
+                     sigwait sigsuspend \
+                     recvmsg sendmsg
+
 libpthread-routines = nptl-init vars events version pt-interp \
                      pthread_create pthread_exit pthread_detach \
                      pthread_join pthread_tryjoin pthread_timedjoin \
@@ -108,14 +120,7 @@ libpthread-routines = nptl-init vars events version pt-interp \
                      lowlevellock lowlevelrobustlock \
                      lll_timedlock_wait lll_timedwait_tid \
                      pt-fork pt-vfork \
-                     ptw-write ptw-read ptw-close ptw-fcntl ptw-accept \
-                     ptw-connect ptw-recv ptw-recvfrom ptw-send \
-                     ptw-sendto ptw-fsync ptw-lseek ptw-llseek \
-                     ptw-msync ptw-nanosleep ptw-open ptw-open64 ptw-pause \
-                     ptw-pread ptw-pread64 ptw-pwrite ptw-pwrite64 \
-                     ptw-tcdrain ptw-wait ptw-waitpid ptw-msgrcv ptw-msgsnd \
-                     ptw-sigwait ptw-sigsuspend \
-                     ptw-recvmsg ptw-sendmsg \
+                     $(pthread-compat-wrappers) \
                      pt-raise pt-system \
                      flockfile ftrylockfile funlockfile \
                      sigaction \
index 1e6be8eea86ae3dba1c0ecab645b0328fc70184a..4bc1a18d0cadbee843806c64931819a883a9d9a7 100644 (file)
@@ -20,6 +20,6 @@ gen-as-const-headers += tcb-offsets.sym
 endif
 
 ifeq ($(subdir),nptl)
-libpthread-routines += ptw-sysdep ptw-sigblock ptw-sigprocmask
-libpthread-shared-only-routines += ptw-sysdep ptw-sigblock ptw-sigprocmask
+libpthread-routines += sysdep sigblock sigprocmask
+libpthread-shared-only-routines += sysdep sigblock sigprocmask
 endif
index 71a4f8fa4b0d804710e17894abcd4b808177b581..a25bd6957f03699d152a41f5c0de19afca077f58 100644 (file)
@@ -123,7 +123,8 @@ endif
 
 ifeq ($(subdir),nptl)
 # We do not need any wrappers in libpthread.
-libpthread-routines := $(filter-out ptw-%,$(libpthread-routines))
+libpthread-routines := \
+  $(filter-out $(pthread-compat-wrappers),$(libpthread-routines))
 endif
 
 ifeq ($(subdir),misc)
index 2f4918d11242494741a3196d58a6402ef5431259..babee94746b8fd144187df871c5352b7f4ad201c 100644 (file)
@@ -26,7 +26,3 @@ shared-thread-library = $(common-objpfx)nptl/libpthread_nonshared.a \
 static-thread-library = $(common-objpfx)nptl/libpthread.a
 
 rpath-dirs += nptl
-
-# This makes for ptw-*.? object rules in sysd-rules.
-ptw-CPPFLAGS := -DPTW
-sysd-rules-patterns += ptw-%:%
index 3a391c82179b9f5a58cedf08214b8696aee8689b..352edc050412ea3d4ad2ec7adc8d4cbdaed4c34c 100644 (file)
@@ -20,6 +20,6 @@ gen-as-const-headers += tcb-offsets.sym
 endif
 
 ifeq ($(subdir),nptl)
-libpthread-routines += ptw-sysdep
-libpthread-shared-only-routines += ptw-sysdep
+libpthread-routines += sysdep
+libpthread-shared-only-routines += sysdep
 endif
index 3b523b70cfadb003584dbd5fad6548d098ac4863..1e858ce727fb40ad626c87255075d67184ab1a0c 100644 (file)
@@ -39,6 +39,6 @@ endif   # math
 
 ifeq ($(subdir),nptl)
 # pull in __syscall_error routine, __sigprocmask, __syscall_rt_sigaction
-libpthread-routines += ptw-sysdep ptw-sigprocmask ptw-rt_sigaction
-libpthread-shared-only-routines += ptw-sysdep ptw-sigprocmask ptw-rt_sigaction
+libpthread-routines += sysdep sigprocmask rt_sigaction
+libpthread-shared-only-routines += sysdep sigprocmask rt_sigaction
 endif
This page took 0.181545 seconds and 5 git commands to generate.