;;
arm-*-coff* | armel-*-coff*)
tm_file=arm/coff.h
- tmake_file=arm/t-bare
+ tmake_file=arm/t-arm-coff
;;
arm-*-vxworks*)
tm_file=arm/vxarm.h
- tmake_file=arm/t-bare
+ tmake_file=arm/t-arm-coff
thread_file='vxworks'
;;
changequote(,)dnl
;;
arm*-*-aout)
tm_file=arm/aout.h
- tmake_file=arm/t-bare
+ tmake_file=arm/t-arm-aout
;;
arm*-*-ecos-elf)
tm_file=arm/ecos-elf.h
- tmake_file=arm/t-elf
+ tmake_file=arm/t-arm-elf
;;
arm*-*-elf)
tm_file=arm/unknown-elf.h
arm-*-pe*)
tm_file=arm/pe.h
tmake_file=arm/t-pe
- extra_objs=pe.o
+ extra_objs="pe.o"
;;
avr-*-*)
;;
tmake_file=rs6000/t-beos
xmake_file=rs6000/x-beos
;;
- powerpc-*-sysv* | powerpc-*-elf*)
+ powerpc-*-sysv*)
tm_file=rs6000/sysv4.h
xm_file="rs6000/xm-sysv4.h"
xm_defines="USG POSIX"
extra_headers=ppc-asm.h
- if test x$gas = xyes
- then
- tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
- else
- tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
- fi
+ tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
xmake_file=rs6000/x-sysv4
;;
powerpc-*-eabiaix*)
- tm_file=rs6000/eabiaix.h
+ tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
extra_headers=ppc-asm.h
;;
powerpc-*-eabisim*)
- tm_file=rs6000/eabisim.h
+ tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
+ tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
+ extra_headers=ppc-asm.h
+ ;;
+ powerpc-*-elf*)
+ tm_file="rs6000/sysv4.h"
tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
extra_headers=ppc-asm.h
;;
powerpc-*-eabi*)
- tm_file=rs6000/eabi.h
- if test x$gas = xyes
- then
- tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
- else
- tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
- fi
+ tm_file="rs6000/sysv4.h rs6000/eabi.h"
+ tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
extra_headers=ppc-asm.h
;;
powerpc-*-rtems*)
- tm_file=rs6000/rtems.h
- if test x$gas = xyes
- then
- tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
- else
- tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
- fi
+ tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
+ tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
extra_headers=ppc-asm.h
;;
powerpc-*-linux-gnulibc1)
- tm_file=rs6000/linux.h
+ tm_file="rs6000/sysv4.h rs6000/linux.h"
xm_file=rs6000/xm-sysv4.h
out_file=rs6000/rs6000.c
- if test x$gas = xyes
- then
- tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
- else
- tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
- fi
+ tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
xmake_file=x-linux
- extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
extra_headers=ppc-asm.h
if test x$enable_threads = xyes; then
thread_file='posix'
fi
;;
powerpc-*-linux-gnu*)
- tm_file=rs6000/linux.h
+ tm_file="rs6000/sysv4.h rs6000/linux.h"
xm_file="rs6000/xm-sysv4.h"
xm_defines="USG ${xm_defines}"
out_file=rs6000/rs6000.c
- if test x$gas = xyes
- then
- tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
- else
- tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
- fi
+ tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
xmake_file=x-linux
- extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
extra_headers=ppc-asm.h
if test x$enable_threads = xyes; then
thread_file='posix'
cpu_type=rs6000
xm_file="rs6000/xm-sysv4.h"
xm_defines="USG POSIX"
- tm_file=rs6000/vxppc.h
+ tm_file="rs6000/sysv4.h rs6000/vxppc.h"
tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
extra_headers=ppc-asm.h
thread_file='vxworks'
cpu_type=rs6000
xm_file="rs6000/xm-sysv4.h"
xm_defines="USG POSIX"
- tm_file=rs6000/vxppcle.h
+ tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
extra_headers=ppc-asm.h
thread_file='vxworks'
;;
- powerpcle-*-sysv* | powerpcle-*-elf*)
- tm_file=rs6000/sysv4le.h
+ powerpcle-*-sysv*)
+ tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
xm_file="rs6000/xm-sysv4.h"
xm_defines="USG POSIX"
- if test x$gas = xyes
- then
- tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
- else
- tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
- fi
+ tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
xmake_file=rs6000/x-sysv4
extra_headers=ppc-asm.h
;;
+ powerpcle-*-elf*)
+ tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
+ tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
+ extra_headers=ppc-asm.h
+ ;;
powerpcle-*-eabisim*)
- tm_file=rs6000/eabilesim.h
+ tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
extra_headers=ppc-asm.h
;;
powerpcle-*-eabi*)
- tm_file=rs6000/eabile.h
- if test x$gas = xyes
- then
- tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
- else
- tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
- fi
+ tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
+ tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
extra_headers=ppc-asm.h
;;
powerpcle-*-solaris2*)
- tm_file=rs6000/sol2.h
+ tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
xm_file="rs6000/xm-sysv4.h"
xm_defines="USG POSIX"
- if test x$gas = xyes
- then
- tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
- else
- tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
- fi
+ tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
xmake_file=rs6000/x-sysv4
extra_headers=ppc-asm.h
;;
then
tmake_file=rs6000/t-xnewas
else
+ tmake_file=rs6000/t-newas
+ fi
+ if test "$gnu_ld" = yes
+ then
+ xmake_file=rs6000/x-aix41-gld
+ else
tmake_file="rs6000/t-newas rs6000/t-aix41"
fi
xmake_file=rs6000/x-aix41
# ;;
# tahoe-*-bsd*) # tahoe running BSD
# ;;
- thumb-*-coff* | thumbel-*-coff*)
- tm_file=arm/tcoff.h
- out_file=arm/thumb.c
- xm_file=arm/xm-thumb.h
- md_file=arm/thumb.md
- tmake_file=arm/t-thumb
- tm_p_file=arm/thumb-protos.h
- ;;
- thumb-*-elf* | thumbel-*-elf*)
- tm_file=arm/telf.h
- out_file=arm/thumb.c
- xm_file=arm/xm-thumb.h
- md_file=arm/thumb.md
- tmake_file=arm/t-thumb-elf
- tm_p_file=arm/thumb-protos.h
- ;;
- thumb-*-linux-gnu*)
- tm_file=arm/linux-telf.h
- out_file=arm/thumb.c
- xm_file=arm/xm-thumb.h
- md_file=arm/thumb.md
- tmake_file=arm/t-thumb-linux
- tm_p_file=arm/thumb-protos.h
- ;;
- thumb-*-uclinux*)
- tm_file=arm/uclinux-telf.h
- out_file=arm/thumb.c
- md_file=arm/thumb.md
- tmake_file=arm/t-thumb-linux
- xm_file=arm/xm-thumb.h
- tm_p_file=arm/thumb-protos.h
- ;;
- thumb-wrs-vxworks)
- tm_file=arm/tcoff.h
- out_file=arm/thumb.c
- xm_file=arm/xm-thumb.h
- md_file=arm/thumb.md
- tmake_file=arm/t-thumb
- thread_file='vxworks'
- tm_p_file=arm/thumb-protos.h
- ;;
- thumb-*-pe)
- tm_file=arm/tpe.h
- out_file=arm/thumb.c
- xm_file=arm/xm-thumb.h
- md_file=arm/thumb.md
- tmake_file=arm/t-pe-thumb
- extra_objs=pe.o
- tm_p_file=arm/thumb-protos.h
+
+ thumb*-*-*)
+ AC_MSG_ERROR([
+*** The Thumb targets have been depreciated. The equivalent
+*** ARM based toolchain can now generated Thumb instructions
+*** when the -mthumb switch is given to the compiler.])
;;
# This hasn't been upgraded to GCC 2.
# tron-*-*)
fi
AC_MSG_RESULT($gcc_cv_as_weak)
+AC_MSG_CHECKING(assembler hidden support)
+gcc_cv_as_hidden=
+if test x$gcc_cv_as != x; then
+ # Check if we have .hidden
+ echo " .hidden foobar" > conftest.s
+ echo "foobar:" >> conftest.s
+ if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
+ AC_DEFINE(HAVE_GAS_HIDDEN)
+ gcc_cv_as_hidden="yes"
+ fi
+ rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
+fi
+AC_MSG_RESULT($gcc_cv_as_hidden)
+
case "$target" in
sparc*-*-*)
AC_CACHE_CHECK([assembler .register pseudo-op support],
])
AC_SUBST(GXX_ABI_FLAG)
+# Build a new-libstdc++ system (ie libstdc++-v3)
+AC_MSG_CHECKING([for libstdc++ to install])
+AC_ARG_ENABLE(libstdcxx-v3,
+[ --enable-libstdcxx-v3
+ enable libstdc++-v3 for building and installation],
+ [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
+
+if test x$enable_libstdcxx_v3 = xyes; then
+ AC_MSG_RESULT(v3)
+ AC_DEFINE(ENABLE_STD_NAMESPACE)
+else
+ AC_MSG_RESULT(v2)
+fi
+
+
# Make empty files to contain the specs and options for each language.
# Then add #include lines to for a compiler that has specs and/or options.