fi])
# Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
-cpp_main=cccp
+cpp_main=cppmain
AC_ARG_ENABLE(cpplib,
-[ --enable-cpplib use cpplib for the C preprocessor.],
-if test x$enable_cpplib != xno; then
- cpp_main=cppmain
+[ --disable-cpplib use the old isolated C preprocessor.],
+if test x$enable_cpplib = xno; then
+ cpp_main=cccp
fi)
# Link cpplib into the compiler proper, for C/C++/ObjC.
cpp_main=cppmain
fi)
-# Disable fast fixincludes
-AC_ARG_ENABLE(fast-fixincludes,
-[ --disable-fast-fixincludes
- Disable the new fast fixincludes.
- Run the old fixincludes script unconditionally],
-if test x$enable_fast_fixincludes = xno ; then
- cp $srcdir/fixincludes ./fixinc.sh
-fi)
-
# Enable Multibyte Characters for C/C++
AC_ARG_ENABLE(c-mbchar,
[ --enable-c-mbchar Enable multibyte characters for C and C++.],
objc_boehm_gc='')
AC_ARG_WITH(dwarf2,
-[ --enable-dwarf2 enable DWARF2 debugging as default.],
+[ --with-dwarf2 force the default debug format to be DWARF2.],
dwarf2="$with_dwarf2",
dwarf2=no)
;;
esac
AC_FUNC_VFORK
-AC_FUNC_MMAP
+AC_FUNC_MMAP_ANYWHERE
GCC_NEED_DECLARATIONS(bcopy bzero bcmp \
index rindex getenv atol sbrk abort atof strerror getcwd getwd \
- strsignal putc_unlocked fputs_unlocked strstr)
+ strsignal putc_unlocked fputs_unlocked strstr environ)
GCC_NEED_DECLARATIONS(malloc realloc calloc free, [
#ifdef HAVE_MALLOC_H
install_headers_dir=install-headers-cpio
;;
*-*-osf5*)
- tm_file="${tm_file} alpha/osf.h"
+ tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
;;
esac
case $machine in
changequote(,)dnl
- *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
+ *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
changequote([,])dnl
target_cpu_default=MASK_SUPPORT_ARCH
;;
arm*-*-netbsd*)
tm_file=arm/netbsd.h
tmake_file="t-netbsd arm/t-netbsd"
- use_collect2=yes
+ use_collect2=yes
;;
arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
cpu_type=arm
arm*-*-elf)
tm_file=arm/unknown-elf.h
tmake_file=arm/t-arm-elf
+# tm_file=arm2/unknown-elf.h
+# tmake_file=arm2/t-arm-elf
+# out_file=arm2/arm.c
+# xm_file=arm2/xm-arm.h
+# md_file=arm2/arm.md
+# tm_p_file=arm2/arm-protos.h
;;
arm*-*-oabi)
tm_file=arm/unknown-elf-oabi.h
tmake_file=arm/t-pe
extra_objs=pe.o
;;
+ avr-*-*)
+ ;;
c1-convex-*) # Convex C1
target_cpu_default=1
use_collect2=yes
xmake_file=pa/x-pa-mpeix
echo "You must use gas. Assuming it is already installed."
install_headers_dir=install-headers-tar
- fixincludes=Makefile.in
use_collect2=yes
;;
i370-*-opened*) # IBM 360/370/390 Architecture
tm_file=i370/oe.h
xmake_file=i370/x-oe
tmake_file=i370/t-oe
- fixincludes=Makefile.in # Headers are wierd, don't mess with
;;
i370-*-mvs*)
xm_file=i370/xm-mvs.h
tm_file=i370/mvs.h
tmake_file=i370/t-mvs
- fixincludes=Makefile.in # Headers are wierd, don't mess with
;;
i370-*-linux*)
xm_file="xm-linux.h i370/xm-linux.h"
xmake_file=x-linux
tm_file="i370/linux.h ${tm_file}"
tmake_file="t-linux i370/t-linux"
- fixincludes=Makefile.in # The headers are ok already.
# broken_install=yes
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
# extra_parts="crtbegin.o crtend.o"
tm_file=i386/i386-aout.h
tmake_file=i386/t-i386bare
;;
+changequote(,)dnl
+ i[34567]86-*-beospe*)
+changequote([,])dnl
+ xm_file=i386/xm-beos.h
+ xm_defines="USE_C_ALLOCA"
+ tmake_file=i386/t-beos
+ tm_file=i386/beos-pe.h
+ xmake_file=i386/x-beos
+ extra_objs=winnt.o
+ ;;
+changequote(,)dnl
+ i[34567]86-*-beoself* | i[34567]86-*-beos*)
+changequote([,])dnl
+ xm_file=i386/xm-beos.h
+ tmake_file='i386/t-beos i386/t-crtpic'
+ tm_file=i386/beos-elf.h
+ xmake_file=i386/x-beos
+ extra_objs=winnt.o
+ extra_parts='crtbegin.o crtend.o'
+ ;;
changequote(,)dnl
i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
changequote([,])dnl
changequote([,])dnl
tm_file=i386/netbsd.h
tmake_file=t-netbsd
- use_collect2=yes
+ use_collect2=yes
;;
changequote(,)dnl
i[34567]86-*-openbsd*)
tmake_file="i386/t-go32 t-rtems"
;;
changequote(,)dnl
- i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
+ i[34567]86-*-rtemscoff*)
changequote([,])dnl
cpu_type=i386
- tm_file=i386/rtemself.h
- extra_parts="crtbegin.o crtend.o crti.o crtn.o"
- tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
+ tm_file=i386/rtems.h
+ tmake_file="i386/t-i386bare t-rtems"
;;
changequote(,)dnl
- i[34567]86-*-rtemscoff*)
+ i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
changequote([,])dnl
cpu_type=i386
- tm_file=i386/rtems.h
- tmake_file="i386/t-i386bare t-rtems"
+ tm_file=i386/rtemself.h
+ extra_parts="crtbegin.o crtend.o crti.o crtn.o"
+ tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
;;
changequote(,)dnl
i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
tm_file=m68k/netbsd.h
tmake_file=t-netbsd
float_format=m68k
- use_collect2=yes
+ use_collect2=yes
;;
m68k*-*-openbsd*)
float_format=m68k
xmake_file=m88k/x-sysv4
tmake_file=m88k/t-sysv4
;;
+ mcore-*-elf)
+ tm_file=mcore/mcore-elf.h
+ tmake_file=mcore/t-mcore
+ ;;
+ mcore-*-pe*)
+ tm_file=mcore/mcore-pe.h
+ tmake_file=mcore/t-mcore-pe
+ ;;
mips-sgi-irix6*) # SGI System V.4., IRIX 6
if test "x$gnu_ld" = xyes
then
xm_file="ns32k/xm-netbsd.h ${xm_file}"
# On NetBSD, the headers are already okay, except for math.h.
tmake_file=t-netbsd
- use_collect2=yes
+ use_collect2=yes
;;
pdp11-*-bsd)
tm_file="${tm_file} pdp11/2bsd.h"
;;
pdp11-*-*)
;;
+ avr-*-*)
+ ;;
ns32k-*-openbsd*)
# Nothing special
;;
sparc-*-netbsd*)
tm_file=sparc/netbsd.h
tmake_file=t-netbsd
- use_collect2=yes
+ use_collect2=yes
;;
sparc-*-openbsd*)
# we need collect2 until our bug is fixed...
sparc-*-rtemsaout*)
tmake_file="sparc/t-sparcbare t-rtems"
tm_file=sparc/rtems.h
+ ;;
sparc-*-rtems*|sparc-*-rtemself*)
tm_file="sparc/rtemself.h"
tmake_file="sparc/t-elf t-rtems"
#float_format=i128
float_format=i64
;;
- ;;
sparcv9-*-solaris2*)
if test x$gnu_ld = xyes
then
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
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
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
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
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
md_file=arm/thumb.md
tmake_file=arm/t-pe-thumb
extra_objs=pe.o
+ tm_p_file=arm/thumb-protos.h
;;
# This hasn't been upgraded to GCC 2.
# tron-*-*)
tm_file="${tm_file} netbsd.h vax/netbsd.h"
tmake_file=t-netbsd
float_format=vax
- use_collect2=yes
+ use_collect2=yes
;;
vax-*-openbsd*)
tmake_file="${tmake_file} vax/t-openbsd"
fi
if test x"$dwarf2" = xyes
-then tm_file="tm-dwarf2.h $tm_file"
+then tm_file="$tm_file tm-dwarf2.h"
fi
if test x$float_format = x
gcc_version_trigger=${srcdir}/version.c
fi
changequote(,)dnl
-gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
+gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
changequote([,])dnl
# Internationalization
AC_MSG_ERROR([$withval is an invalid option to --with-gc])
;;
esac],
-[if test $ac_cv_func_mmap_fixed_mapped = yes; then
- GGC=ggc-page
-elif test $ac_cv_func_valloc = yes; then
+[if test $ac_cv_func_mmap_anywhere = yes \
+ || test $ac_cv_func_valloc = yes; then
GGC=ggc-page
else
GGC=ggc-simple
AC_SUBST(GGC)
echo "Using $GGC for garbage collection."
+# Build a new-abi (c++) system
+AC_ARG_ENABLE(new-gxx-abi,
+[ --enable-new-gxx-abi
+ select the new abi for g++. You must select an ABI
+ at configuration time, so that the correct runtime
+ support is built. You cannot mix ABIs.],
+[AC_DEFINE(ENABLE_NEW_GXX_ABI)
+GXX_ABI_FLAG='-fnew-abi'
+echo "Building a new-abi g++ compiler."
+])
+AC_SUBST(GXX_ABI_FLAG)
+
# 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.
AC_SUBST(extra_parts)
AC_SUBST(extra_passes)
AC_SUBST(extra_programs)
-AC_SUBST(fixinc_defs)
AC_SUBST(float_h_file)
AC_SUBST(gcc_gxx_include_dir)
AC_SUBST(gcc_version)