GCC-3.0.4 (pre) on AIX requires pthreads
David Edelsohn
dje@watson.ibm.com
Wed Feb 20 13:16:00 GMT 2002
>>>>> Phil Edwards writes:
Phil> That doesn't sound quite correct.
Phil> libstdc++ uses whatever gets printed after "Thread model:" in the output of
Phil> "gcc -v". We do not check for "pthread" IIRC.
Phil> Have you tried "--enable-threads=aix"? What do you normally do to get
Phil> gthr-aix.h to be used?
I am sorry that it does not sound correct, but that is what
happens. GCC configure *AUTOMATICALLY* sets the thread model to "AIX" by
setting thread_file='aix' in gcc/config.gcc. --enable-threads=aix is
already done implicitly. Period. End of that discussion. Go read the
source if you disagree.
libstdc++ trying to treat AIX as either "posix" or "single" in a
multilib is what is coming back to haunt us. Objective C uses gthr-aix.h,
but libtsdc++ does not.
David
More information about the Libstdc++
mailing list