public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] ia64: Remove sigprocmask/sigblock objects from libpthread
@ 2020-04-21 18:12 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2020-04-21 18:12 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=34d49f120df2787788acfdf86769277a1a7ebccb

commit 34d49f120df2787788acfdf86769277a1a7ebccb
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 13 19:10:08 2020 +0000

    ia64: Remove sigprocmask/sigblock objects from libpthread
    
    It is required because __libc_unwind_longjmp (used on thread
    cancellation) calls __sigprocmask.  Replace with a direct call.
    
    They are required because __libc_unwind_longjmp (used for thread
    cancellation) calls __sigprocmask.  Replace this with a direct call.
    
    The sigblock function is not exported and is not used internally, so
    it can be removed.
    
    Checked on cross build for ia64-linux-gnu.

Diff:
---
 sysdeps/ia64/nptl/Makefile                    | 4 ++--
 sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/sysdeps/ia64/nptl/Makefile b/sysdeps/ia64/nptl/Makefile
index b7d87c37c8..d34cb27699 100644
--- a/sysdeps/ia64/nptl/Makefile
+++ b/sysdeps/ia64/nptl/Makefile
@@ -20,6 +20,6 @@ gen-as-const-headers += tcb-offsets.sym
 endif
 
 ifeq ($(subdir),nptl)
-libpthread-routines += sysdep sigblock sigprocmask
-libpthread-shared-only-routines += sysdep sigblock sigprocmask
+libpthread-routines += sysdep
+libpthread-shared-only-routines += sysdep
 endif
diff --git a/sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c b/sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c
index 93d1d66dd0..d9ed942963 100644
--- a/sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c
+++ b/sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c
@@ -34,8 +34,7 @@ __libc_unwind_longjmp (sigjmp_buf env, int val)
 
   if (env[0].__mask_was_saved)
     /* Restore the saved signal mask.  */
-    (void) __sigprocmask (SIG_SETMASK, &env[0].__saved_mask,
-			  (sigset_t *) NULL);
+    __libc_signal_restore_set (&env[0].__saved_mask);
 
   /* Call the machine-dependent function to restore machine state.  */
   __sigstack_longjmp (env[0].__jmpbuf, val ?: 1);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-21 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-21 18:12 [glibc] ia64: Remove sigprocmask/sigblock objects from libpthread Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).