]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/52390 (only linux uses nptl)
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 27 Feb 2012 18:50:45 +0000 (18:50 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 27 Feb 2012 18:50:45 +0000 (18:50 +0000)
PR target/52390
* generic-morestack.c (__generic_morestack_set_initial_sp): Test
for __linux__ when removing signals from __morestack_fullmask.

From-SVN: r184606

libgcc/ChangeLog
libgcc/generic-morestack.c

index c9d7fdfdde147060185317fb82b9c0e8652eb3b0..036d46a82b76e7042e680087c32a2750c933919b 100644 (file)
@@ -1,3 +1,9 @@
+2012-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       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  <avr@gjlay.de>
 
        PR target/52261
index 96a8210f91274a7d85e0c032f8d9587516378371..6182a379558355079498b25b76c207dbac70eec4 100644 (file)
@@ -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