This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]