diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2011-12-14 18:49:16 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2011-12-14 10:49:16 -0800 |
commit | a13780a6664dd04eb52be6e0de63b12c08a78bc5 (patch) | |
tree | 47d6df060c057c4ef33fef43f1c7bfbe86f432f6 /libgcc | |
parent | d5363590597572228d4e0d0ae13f3469176ceb14 (diff) | |
download | gcc-a13780a6664dd04eb52be6e0de63b12c08a78bc5.tar.gz |
Check __GLIBC__ when using __SIGRTMIN
2011-12-14 H.J. Lu <hongjiu.lu@intel.com>
* generic-morestack.c (__generic_morestack_set_initial_sp): Check
__GLIBC__ instead of __linux__ when using __SIGRTMIN.
From-SVN: r182342
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/generic-morestack.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index ce2df4acd32..9cb7a41db00 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2011-12-14 H.J. Lu <hongjiu.lu@intel.com> + + * generic-morestack.c (__generic_morestack_set_initial_sp): Check + __GLIBC__ instead of __linux__ when using __SIGRTMIN. + 2011-12-14 Georg-Johann Lay <avr@gjlay.de> PR target/49313 diff --git a/libgcc/generic-morestack.c b/libgcc/generic-morestack.c index 4dbaa0e4cdc..96a8210f912 100644 --- a/libgcc/generic-morestack.c +++ b/libgcc/generic-morestack.c @@ -507,8 +507,8 @@ __generic_morestack_set_initial_sp (void *sp, size_t len) sigemptyset (&__morestack_initial_sp.mask); sigfillset (&__morestack_fullmask); -#ifdef __linux__ - /* On Linux, the first two real time signals are used by the NPTL +#ifdef __GLIBC__ + /* 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 importantly, pthread_sigmask uses less stack space on x86_64. */ |