GCC-3.0.4 (pre) on AIX requires pthreads

Phil Edwards phil@jaj.com
Wed Feb 20 14:39:00 GMT 2002

On Wed, Feb 20, 2002 at 05:09:53PM -0500, David Edelsohn wrote:
> http://gcc.gnu.org/ml/libstdc++/2000-09/msg00097.html
> http://gcc.gnu.org/ml/libstdc++/2001-04/msg00376.html
> http://gcc.gnu.org/ml/libstdc++/2001-05/msg00018.html

What a mess.

> http://gcc.gnu.org/ml/libstdc++/2001-05/msg00048.html

Okay.  Here's the message where you suggest what has since been implemented.

>         AIX does want POSIX, but only when the -pthread option is present
> on the commandline.  G+ can handle this, but libstdc++ and gthr.h cannot.

So, we just need to turn a command-line option into -D_THREAD_SAFE?  Okay,
that's already being done...

>         gthr-aix.h depends upon gthr-posix.h and gthr-single.h.  Using
> gthr-aix.h requires libstdc++ understanding that dependency and installing
> all THREE headers.  libstdc++/include/Makefile currently only installs
> thread_target_headers (gthr.h, gthr-single.h, gthr-default.h) and the
> *SINGLE* file to which glicpp_thread_h is defined.

...ah!  The actual problem!

Are you saying that this would all be solved by:

1)  Making 'aix' the displayed thread model, and
2)  Installing more headers?


If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams

More information about the Libstdc++ mailing list