[libgomp] Add Unix95 mutex support

Rainer Orth ro@TechFak.Uni-Bielefeld.DE
Thu Feb 16 10:48:00 GMT 2006


Jakub Jelinek writes:

> While we talk about Tru64, we should really get rid of the bogus
> /* Some implementations of <pthread.h> require this to be defined.  */
> #ifndef _REENTRANT
> #define _REENTRANT 1
> #endif
> that was added to gthr-posix.h to make Tru64 happy.  If Tru64 needs
> something like that, it needs to do that in its own headers, not generic
> ones used on all arches.  With this hunk, code that wants to see if
> -pthread was or was not used on command line suddenly can't find that out,
> as any code that through C++ headers includes gthr-posix.h will define
> _REENTRANT, no matter if -pthread was used or not.

I know, and once had a patch to do just that.  I've been very busy for a
long time with no spare time left for any GCC work until recently.  I hope
to resurrect that patch soon, but am currently working on making sure 4.1
works on my platforms.

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University



More information about the Gcc-patches mailing list