OSDN Git Service

PR target/52390
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Feb 2012 18:50:45 +0000 (18:50 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Feb 2012 18:50:45 +0000 (18:50 +0000)
* generic-morestack.c (__generic_morestack_set_initial_sp): Test
for __linux__ when removing signals from __morestack_fullmask.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184606 138bc75d-0d04-0410-961f-82ee72b054a4

libgcc/ChangeLog
libgcc/generic-morestack.c

index c9d7fdf..036d46a 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 96a8210..6182a37 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