diff mbox

libgcc patch committed: Add test for __linux__

Message ID mcripisun3r.fsf@dhcp-172-18-216-180.mtv.corp.google.com
State New
Headers show

Commit Message

Ian Lance Taylor Feb. 27, 2012, 6:50 p.m. UTC
PR 52390 complains that the libgcc morestack support tests for __glibc__
for code that can only happen on GNU/Linux systems.  This patch adds a
test for __linux__ as well.  This will presumably improve matters when
using glibc on a non-Linux system.  Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian


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.
diff mbox

Patch

Index: generic-morestack.c
===================================================================
--- generic-morestack.c	(revision 184605)
+++ generic-morestack.c	(working copy)
@@ -507,7 +507,7 @@  __generic_morestack_set_initial_sp (void
   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