This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: AIX status
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Subject: Re: AIX status
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Mon, 30 Oct 2000 15:54:42 -0500
- cc: libstdc++ at sources dot redhat dot com, Mark Mitchell <mark at codesourcery dot com>
>>>>> Benjamin Kosnik writes:
Ben> Hmm.
I mentioned this failure to Mark last week.
Ben> Am I correct in assuming that the mknumeric_limits patch is no longer
Ben> necessary? That would be great. If there is any divergence between CVS
Ben> and your build tree's sources, can you please post it?
The mknumeric_limits patch still is necessary.
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.
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.
David
Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.76
diff -c -p -r1.76 acinclude.m4
*** acinclude.m4 2000/10/30 13:15:23 1.76
--- acinclude.m4 2000/10/30 20:42:54
*************** AC_DEFUN(GLIBCPP_CHECK_OS, [
*** 795,800 ****
--- 795,804 ----
# Currently unused, but could be useful.
# OS_FLAGS=
case "${target_os}" in
+ aix4.[[3456789]]* | aix[[56789]]*)
+ os_include_dir="config/os/aix"
+ enable_threads='aix'
+ ;;
aix*)
os_include_dir="config/os/aix"
;;
*************** 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
Index: mknumeric_limits
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/mknumeric_limits,v
retrieving revision 1.2
diff -c -p -r1.2 mknumeric_limits
*** mknumeric_limits 2000/05/01 00:14:10 1.2
--- mknumeric_limits 2000/10/25 22:03:23
*************** echo "running mknumeric_limits"
*** 13,19 ****
case `uname` in
CYGWIN*)
LDFLAGS='-nodefaultlibs -lcygwin -lc -lkernel32 -lgcc' ;;
! *)
LDFLAGS='-nodefaultlibs -lgcc -lc' ;;
esac
--- 13,27 ----
case `uname` in
CYGWIN*)
LDFLAGS='-nodefaultlibs -lcygwin -lc -lkernel32 -lgcc' ;;
! AIX*)
! case $CXX in
! *pthread*)
! LDFLAGS='-nodefaultlibs -lgcc -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a' ;;
! *)
! LDFLAGS='-nodefaultlibs -lgcc -lc' ;;
! esac
! ;;
! *)
LDFLAGS='-nodefaultlibs -lgcc -lc' ;;
esac