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

Re: Possible Showstopper


> Andreas Jaeger (aj@arthur.rhein-neckar.de) wrote:
> > +#  pragma weak _pthread_cleanup_push_defer
> > +#  pragma weak _pthread_cleanup_pop_restore
> 
> Applying this patch does not fix things here on Red Hat 5.0.  I still
> need to link all C++ programs against the pthreads library.

Yes, this is what I found as well.  A solution is to insert into
libc-lock.h

asm(".weakext _pthread_cleanup_push_defer");
asm(".weakext _pthread_cleanup_pop_restore");

instead of the `#pragma weak's.  This is rather ugly, but works for
me.

Regards,
Wolfram.
-- 
`Surf the sea, not double-u three...'
wmglo@dent.med.uni-muenchen.de


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