This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52390] New: only linux uses nptl
- From: "samuel dot thibault at ens-lyon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 26 Feb 2012 16:49:27 +0000
- Subject: [Bug c/52390] New: only linux uses nptl
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: samuel.thibault@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