This is the mail archive of the libstdc++@sources.redhat.com 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]

Re: AIX status


On Mon, Oct 30, 2000 at 03:54:42PM -0500, David Edelsohn wrote:
> 
> 	The appended patch enables AIX pthreads (to match the multilib
> options) and selects the appropriate threads header, links
> mknumeric_limits with the pthreads library when appropriate.

WRT -lpthread...

Doesn't libtool track dependancies?  (Assume for argument's sake that
libtool would work on AIX "as well" as it does on Linux today.)  If we're
using libtool properly, we should be able to tell it to supply -lpthread
when needed, automatically.

I'm hoping to do something like this for -ldl, maybe.


> 	Remaining issues, other than libtool, include libio dependence on
> GNU libc's bits/stdio-lock.h (affecting all non-GNU targets) and
> _G_config.h defining _G_USING_THUNKS.

Yah.  Do you still have that email in which I mentioned the problems with
the mutexes?  I was going to bring that up, but I seem to have misplaced
that message.


Other than that... this part of the patch:

> *************** AC_DEFUN(GLIBCPP_ENABLE_THREADS, [
> *** 1384,1390 ****
>                   target_thread_file=''
>                   ;;
>           xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
> !         xsolaris | xwin32 | xdce | xvxworks)
>                   target_thread_file=$enable_threads_flag
>                   ;;
>           *)
> --- 1388,1394 ----
>                   target_thread_file=''
>                   ;;
>           xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
> !         xsolaris | xwin32 | xdce | xvxworks | xaix)
>                   target_thread_file=$enable_threads_flag
>                   ;;
>           *)
> *************** AC_DEFUN(GLIBCPP_ENABLE_THREADS, [
> *** 1398,1403 ****
> --- 1402,1417 ----
>     case "$target_thread_file" in
>       no | none | single)
>         THREADH=threads-no.h
> +       ;;
> +     aix)
> +       case "$CXX" in
> + 	*pthread*)
> + 	  THREADH=threads-posix.h
> + 	  ;;
> + 	*)
> + 	  THREADH=threads-no.h
> + 	  ;;
> +       esac
>         ;;
>       posix | pthreads)
>         THREADH=threads-posix.h

...bothers me.  The thread targets aren't for "posix under machine X,"
they're for entirely different kinds of threads.  If you want to use posix
threads, then we need to make --enable-threads=posix work properly, rather
than introducing a "synonym wrapper".  IMO.


Phil


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