This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC-3.0.4 (pre) on AIX requires pthreads
- From: Phil Edwards <phil at jaj dot com>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: Michael Veksler <VEKSLER at il dot ibm dot com>, gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Wed, 20 Feb 2002 16:38:53 -0500
- Subject: Re: GCC-3.0.4 (pre) on AIX requires pthreads
- References: <phil@jaj.com> <200202202115.QAA14588@makai.watson.ibm.com>
On Wed, Feb 20, 2002 at 04:15:58PM -0500, David Edelsohn wrote:
> --enable-threads=aix is
> already done implicitly. Period. End of that discussion. Go read the
> source if you disagree.
Perhaps you should also read the source. Here is what libstdc++ does:
AC_DEFUN(GLIBCPP_ENABLE_THREADS, [
AC_MSG_CHECKING([for thread model used by GCC])
target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
AC_MSG_RESULT([$target_thread_file])
if test $target_thread_file != single; then
AC_DEFINE(HAVE_GTHR_DEFAULT)
AC_DEFINE(_GLIBCPP_SUPPORTS_WEAK, __GXX_WEAK__)
fi
glibcpp_thread_h=gthr-$target_thread_file.h
AC_SUBST(glibcpp_thread_h)
])
That's it. No pthread/posix checks. That's all the knowledge that libstdc++
has of threads: whatever the threading model is reported to be by xgcc.
> #define THREAD_MODEL_SPEC "%{pthread:posix}%{!pthread:single}"
Well, I'm no expert, but that would seem to be the problem. My
specs-to-English is rusty, but doesn't this mean "if -pthread isn't given,
assume single"? Should it not be doing some kind of check on whether or
not to print "aix"?
Phil
--
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