http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52390
Bug #: 52390 Summary: only linux uses nptl Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: samuel.thiba...@ens-lyon.org Created attachment 26756 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26756 mask __SIGRTMIN{,+1} on glibc linux only Hello, src/libgcc/generic-morestack.c currently (as of 4.6.2 in debian, which was updated to r184373 for the 4.6 branch) in __generic_morestack_set_initial_sp() masks out __SIGRTMIN and __SIGRTMIN+1 on all glibc platforms (ifdef __GLIBC__). It used to do that on all linux platforms (ifdef __linux__). I guess the change was made to avoid issues with uclibc and such on linux, but on the other it brings issues with glibc on other ports that linux: NPTL is only ported to Linux, and I doubt there'll be other ports actually, since it is so much tied to the Linux kernel. It should thus turned into if defined(__GLIBC__) && defined(__linux__), as attached patch does. Samuel