This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 3.2 posix thread support on HP-UX
- From: John Love-Jensen <eljay at adobe dot com>
- To: Jayaram Subramani <jsubramani at pillardata dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Tue, 31 Jan 2006 07:03:50 -0600
- Subject: Re: gcc 3.2 posix thread support on HP-UX
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