This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: GCC-3.0.4 (pre) on AIX requires pthreads
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: rittle at labs dot mot dot com
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 22 Feb 2002 18:24:26 -0500
- Subject: Re: GCC-3.0.4 (pre) on AIX requires pthreads
>>>>> Loren James Rittle writes:
Loren> If you are happy with that: OK, agreed. I thought it was useful that
Loren> the compiler could report the correct real thread model based on
Loren> multilib flags. But I see that allowing it makes for a wider total
Loren> solution.
Your approach likely will work as well, but it seems like a large
amount of machinery for something that should be simple.
On the other hand, my suggestion may turn out to be a short-term
fix instead of a solution if the individual thread model on the command
will become important in the future. I don't really have enough insight
to know.
I am not disagreeing with your original patch, just pointing out
that there may be a simpler alternative.
Loren> David, would you agree that this is a safe way to learn the required
Loren> dependent model files that must be installed on AIX:
Loren> ; sed -n 's,^#include.*"\(gthr-.*\)"$,\1,p' gthr-aix.h
Loren> gthr-posix.h
Loren> gthr-single.h
Yes, this seems to be sufficient for the cases at hand.
Am I correctly assuming that gthr-aix.h will be recognized as
glibcpp_thread_h and installed as gthr-default.h? That should avoid a
requirement to teach gthr.h about AIX threads or having GCC emit
-D_PTHREADS to trigger gthr.h machinery.
Thanks, David