]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Check __GLIBC__ when using __SIGRTMIN
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 15 Dec 2011 22:20:41 +0000 (22:20 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 15 Dec 2011 22:20:41 +0000 (14:20 -0800)
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

libgcc/ChangeLog
libgcc/generic-morestack.c

index 71a75bbd0bf92c436b9650da457afb35d48b1a30..c5b1d1cd65155da5806cb7fb983180d2e2898ae2 100644 (file)
@@ -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].*,
index 7e29bbcf7481b261dbeedc66f52c4621a22f46ad..77344a92533cb6f5239ccc16d230457390a31df9 100644 (file)
@@ -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.  */