gcc 3.2 posix thread support on HP-UX

John Love-Jensen eljay@adobe.com
Tue Jan 31 13:03:00 GMT 2006


Hi Jayaram,

> Does it mean - gcc itself cannot use pthreads in the 3.2 version, so gcc
> itself is a single-threaded program OR
> - gcc cannot correctly build code which uses pthreads ?

It means GCC cannot correctly build code which uses pthreads.

Certain critical functions in the C/C++ standard library may not be
re-entrant.  For example, perhaps the malloc and free functions are not
thread-savvy -- that would be bad.

I recommend using GCC 4.0.2.

Note:  in GCC 3.4, the option is --enable-threads=posix (no longer
--enable-threads=pthreads).

HTH,
--Eljay



More information about the Gcc-help mailing list