aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2011-12-15 22:20:41 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2011-12-15 14:20:41 -0800
commit196d5322358db4e3261e984ae8a60e7a7d8aa06c (patch)
treefd44c738ad21f293831f28333bc265db599bbe58 /libgcc
parentaec1d6f64984e1d9b10ad7e1b4d94085ec246c75 (diff)
downloadgcc-196d5322358db4e3261e984ae8a60e7a7d8aa06c.zip
gcc-196d5322358db4e3261e984ae8a60e7a7d8aa06c.tar.gz
gcc-196d5322358db4e3261e984ae8a60e7a7d8aa06c.tar.bz2
Check __GLIBC__ when using __SIGRTMIN
2011-12-15 H.J. Lu <hongjiu.lu@intel.com> Backport from mainline 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: r182393
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog8
-rw-r--r--libgcc/generic-morestack.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 71a75bb..c5b1d1c 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,11 @@
+2011-12-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ Backport from mainline
+ 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-11-23 Gerald Pfeifer <gerald@pfeifer.com>
* config.host (*-*-freebsd[12], *-*-freebsd[12].*,
diff --git a/libgcc/generic-morestack.c b/libgcc/generic-morestack.c
index 7e29bbc..77344a9 100644
--- a/libgcc/generic-morestack.c
+++ b/libgcc/generic-morestack.c
@@ -459,8 +459,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. */