From: Samuel Thibault Date: Mon, 27 Feb 2012 18:50:45 +0000 (+0000) Subject: re PR target/52390 (only linux uses nptl) X-Git-Tag: releases/gcc-4.7.0~187 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d80c632e19b6ad51973f32b6befd14fb06ef6712;p=thirdparty%2Fgcc.git 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 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index c9d7fdfdde14..036d46a82b76 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,9 @@ +2012-02-27 Samuel Thibault + + PR target/52390 + * generic-morestack.c (__generic_morestack_set_initial_sp): Test + for __linux__ when removing signals from __morestack_fullmask. + 2012-02-23 Georg-Johann Lay PR target/52261 diff --git a/libgcc/generic-morestack.c b/libgcc/generic-morestack.c index 96a8210f9127..6182a3795583 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