This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libgcc patch committed: Add test for __linux__

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.


2012-02-27  Samuel Thibault  <>

	PR target/52390
	* generic-morestack.c (__generic_morestack_set_initial_sp): Test
	for __linux__ when removing signals from __morestack_fullmask.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]