Check __GLIBC__ when using __SIGRTMIN
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 14 Dec 2011 18:49:16 +0000 (18:49 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 14 Dec 2011 18:49:16 +0000 (10:49 -0800)
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

libgcc/ChangeLog
libgcc/generic-morestack.c

index ce2df4acd326e14b5075b24801e5bb287cdddeaf..9cb7a41db0042e08c44b221cc9a6c65eace5c3ad 100644 (file)
@@ -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
index 4dbaa0e4cdc9db1fcb15b563860369f0742842b5..96a8210f91274a7d85e0c032f8d9587516378371 100644 (file)
@@ -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.  */