aboutsummaryrefslogtreecommitdiff
path: root/libgcc/generic-morestack.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-27 18:50:45 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-02-27 18:50:45 +0000
commitd80c632e19b6ad51973f32b6befd14fb06ef6712 (patch)
tree3a078170bdfb91e94da6ef3629094a791b697015 /libgcc/generic-morestack.c
parent2afda005e1a9117b67c4094b6a23590ea1646524 (diff)
downloadgcc-d80c632e19b6ad51973f32b6befd14fb06ef6712.zip
gcc-d80c632e19b6ad51973f32b6befd14fb06ef6712.tar.gz
gcc-d80c632e19b6ad51973f32b6befd14fb06ef6712.tar.bz2
re PR target/52390 (only linux uses nptl)
PR target/52390 * generic-morestack.c (__generic_morestack_set_initial_sp): Test for __linux__ when removing signals from __morestack_fullmask. From-SVN: r184606
Diffstat (limited to 'libgcc/generic-morestack.c')
-rw-r--r--libgcc/generic-morestack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcc/generic-morestack.c b/libgcc/generic-morestack.c
index 96a8210..6182a37 100644
--- a/libgcc/generic-morestack.c
+++ b/libgcc/generic-morestack.c
@@ -507,7 +507,7 @@ __generic_morestack_set_initial_sp (void *sp, size_t len)
sigemptyset (&__morestack_initial_sp.mask);
sigfillset (&__morestack_fullmask);
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && defined(__linux__)
/* In glibc, the first two real time signals are used by the NPTL
threading library. By taking them out of the set of signals, we
avoiding copying the signal mask in pthread_sigmask. More