This is the mail archive of the gcc-patches@gcc.gnu.org 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]

Re: Fix compiler build on non-Unix98 systems


Eric Botcazou <ebotcazou@libertysurf.fr> writes:

> > Your patch for PR 13684 added a non guarded use of PTHREAD_MUTEX_RECURSIVE
> > to gthr-posix.c, which makes it impossible to build the compiler on generic
> > non-Unix98 systems (e.g. Solaris 2.5.1 and 2.6).  May I install the
> > attached patch to let the compiler build? 
> >
> > 2004-09-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
> >
> > 	* gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
> > 	with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
> 
> Could a maintainer review this patch, please?  Bootstrap has been broken for 
> more than two months on these platforms.  Thanks in advance.
> 
> http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02924.html

This is OK.

I'm a bit concerned that SUS doesn't say that PTHREAD_MUTEX_RECURSIVE
has to be a preprocessor macro (it might be an enum).  If there's a
system with that property, we'll need to back this patch out and go
for an autoconf test.


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