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: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: dje at watson dot ibm dot com
- Date: Fri, 22 Feb 2002 17:01:11 -0600 (CST)
- Subject: Re: GCC-3.0.4 (pre) on AIX requires pthreads
- References: <200202211635.LAA26422@makai.watson.ibm.com>
- Reply-to: rittle at labs dot mot dot com
> Thanks for the patch. This may be necessary for the general
> solution, but I think the AIX problem could be solved with something less
> intrusive.
> For AIX, if I could rip out the THREAD_MODEL_SPEC, uniformly
> return 'aix' as the model, have libstdc++ install gthr-aix.h and its
> dependencies, I think everything would be solved.
If you are happy with that: OK, agreed. I thought it was useful that
the compiler could report the correct real thread model based on
multilib flags. But I see that allowing it makes for a wider total
solution.
> Using gthr-aix.h makes each multilib thread header look identical
> once again, so it does not matter which multilib directory actually
> succeeds in providing the contents of include/g++-v3.
I will do all the libstdc++-v3 Makefile changes to support your
request. This is less intrusive than the sparling patch I posted and
may be approved solely by those on this mailing list (a big win as far
as I'm concerned since I would need ~5 people's approval or a global
maintainer willing to take a big risk for the other fix).
The theory was that we would like to avoid installing thread support
headers unrelated to the port's configuration. Thus, to make this
aspect work under the assumptions I blew for multilib targets, I would
have to scan the primary gthr-<thread-model>.h file to learn all
addition files to install.
David, would you agree that this is a safe way to learn the required
dependent model files that must be installed on AIX:
; sed -n 's,^#include.*"\(gthr-.*\)"$,\1,p' gthr-aix.h
gthr-posix.h
gthr-single.h
(The same check also supports gthr-dce.h:)
; sed -n 's,^#include.*"\(gthr-.*\)"$,\1,p' gthr-dce.h
gthr-single.h
I will work on this Monday. Between now and then, will anyone object
to that method (i.e. the above sed command) in order to learn the list
of dependent files required for a port configuration?
Regards,
Loren