1999-02-14 14:33:31 -05:00
|
|
|
--- gcc/configure.in.orig Sun Feb 14 19:11:00 1999
|
|
|
|
+++ gcc/configure.in Sun Feb 14 20:29:01 1999
|
1999-02-12 19:53:48 -05:00
|
|
|
@@ -502,11 +502,23 @@
|
1999-01-25 09:46:10 -05:00
|
|
|
tm_file=${cpu_type}/${cpu_type}.h
|
|
|
|
xm_file=${cpu_type}/xm-${cpu_type}.h
|
|
|
|
|
|
|
|
- # Set the default macros to define for GNU/Linux systems.
|
|
|
|
+ # Common parts for linux-gnu and openbsd systems
|
|
|
|
case $machine in
|
|
|
|
*-*-linux-gnu*)
|
|
|
|
xm_defines="HAVE_ATEXIT POSIX BSTRING"
|
1999-01-09 21:50:02 -05:00
|
|
|
;;
|
1999-01-25 09:46:10 -05:00
|
|
|
+ *-*-openbsd*)
|
|
|
|
+ tm_file=${cpu_type}/openbsd.h
|
|
|
|
+ # On OpenBSD systems, the headers are okay
|
|
|
|
+ fixincludes=Makefile.in
|
|
|
|
+ tmake_file="t-libc-ok t-openbsd"
|
1999-02-12 19:53:48 -05:00
|
|
|
+ # avoid surprises, always provide an xm-openbsd file
|
|
|
|
+ xm_file=${cpu_type}/xm-openbsd.h
|
1999-02-03 13:02:53 -05:00
|
|
|
+ if test x$enable_threads = xyes; then
|
|
|
|
+ thread_file='posix'
|
|
|
|
+ tmake_file="${tmake_file} t-openbsd-thread"
|
|
|
|
+ fi
|
1999-01-25 09:46:10 -05:00
|
|
|
+ ;;
|
1999-01-09 21:50:02 -05:00
|
|
|
esac
|
|
|
|
|
1999-01-25 09:46:10 -05:00
|
|
|
case $machine in
|
1999-02-12 19:53:48 -05:00
|
|
|
@@ -586,6 +598,12 @@
|
1999-01-25 09:46:10 -05:00
|
|
|
fixincludes=fixinc.wrap
|
|
|
|
gas=yes gnu_ld=yes
|
|
|
|
;;
|
|
|
|
+
|
|
|
|
+ alpha*-*-openbsd*)
|
|
|
|
+ # default x-alpha is only appropriate for dec-osf.
|
|
|
|
+ target_cpu_default="MASK_GAS"
|
|
|
|
+ xmake_file=none
|
|
|
|
+ ;;
|
|
|
|
|
|
|
|
alpha*-dec-osf*)
|
|
|
|
if test x$stabs = xyes
|
1999-02-14 14:33:31 -05:00
|
|
|
@@ -780,6 +798,10 @@
|
1999-01-25 09:46:10 -05:00
|
|
|
h8300-*-*)
|
|
|
|
float_format=i32
|
|
|
|
;;
|
|
|
|
+ hppa*-*-openbsd*)
|
1999-02-08 15:34:26 -05:00
|
|
|
+ target_cpu_default="MASK_SNAKE"
|
1999-01-25 09:46:10 -05:00
|
|
|
+ tmake_file=pa/t-openbsd
|
|
|
|
+ ;;
|
|
|
|
hppa1.1-*-pro*)
|
|
|
|
tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
|
|
|
|
xm_file=pa/xm-papro.h
|
1999-02-14 14:33:31 -05:00
|
|
|
@@ -1107,10 +1129,8 @@
|
1999-01-25 09:46:10 -05:00
|
|
|
fixincludes=fixinc.wrap
|
|
|
|
tmake_file=i386/t-freebsd
|
|
|
|
;;
|
|
|
|
- # We are hoping OpenBSD is still close enough to NetBSD that we can
|
|
|
|
- # share the configurations.
|
|
|
|
changequote(,)dnl
|
|
|
|
- i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
|
|
|
|
+ i[34567]86-*-netbsd*)
|
1998-11-24 19:54:02 -05:00
|
|
|
changequote([,])dnl
|
1999-01-25 09:46:10 -05:00
|
|
|
tm_file=i386/netbsd.h
|
|
|
|
# On NetBSD, the headers are already okay, except for math.h.
|
1999-02-14 14:33:31 -05:00
|
|
|
@@ -1118,6 +1138,14 @@
|
1999-01-25 09:46:10 -05:00
|
|
|
tmake_file=t-netbsd
|
|
|
|
;;
|
|
|
|
changequote(,)dnl
|
|
|
|
+ i[34567]86-*-openbsd*)
|
|
|
|
+changequote([,])dnl
|
|
|
|
+ # Remove when the math emulator is fixed
|
1999-01-24 16:36:11 -05:00
|
|
|
+ target_cpu_default="MASK_NO_FANCY_MATH_387"
|
|
|
|
+ # we need collect2 until our bug is fixed...
|
|
|
|
+ use_collect2=yes
|
1999-01-25 09:46:10 -05:00
|
|
|
+ ;;
|
|
|
|
+changequote(,)dnl
|
1998-11-24 19:54:02 -05:00
|
|
|
i[34567]86-*-coff*)
|
1999-01-25 09:46:10 -05:00
|
|
|
changequote([,])dnl
|
|
|
|
tm_file=i386/i386-coff.h
|
1999-02-14 14:33:31 -05:00
|
|
|
@@ -1980,6 +2008,11 @@
|
1999-01-25 09:46:10 -05:00
|
|
|
tmake_file=t-netbsd
|
1998-11-24 19:54:02 -05:00
|
|
|
float_format=m68k
|
1999-01-25 09:46:10 -05:00
|
|
|
;;
|
|
|
|
+ m68k*-*-openbsd*)
|
|
|
|
+ float_format=m68k
|
1999-01-24 16:36:11 -05:00
|
|
|
+ # we need collect2 until our bug is fixed...
|
|
|
|
+ use_collect2=yes
|
1999-01-25 09:46:10 -05:00
|
|
|
+ ;;
|
1998-11-24 19:54:02 -05:00
|
|
|
m68k-*-sysv3*) # Motorola m68k's running system V.3
|
|
|
|
xm_file="xm-alloca.h ${xm_file}"
|
1999-01-25 09:46:10 -05:00
|
|
|
xm_defines=USG
|
1999-02-14 14:33:31 -05:00
|
|
|
@@ -2103,6 +2136,9 @@
|
1999-02-08 12:51:03 -05:00
|
|
|
tmake_file=m88k/t-luna
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
+ m88k-*-openbsd*)
|
|
|
|
+ tmake_file="${tmake_file} m88k/t-luna-gas"
|
|
|
|
+ ;;
|
|
|
|
m88k-*-sysv3*)
|
|
|
|
tm_file=m88k/sysv3.h
|
|
|
|
extra_parts="crtbegin.o crtend.o"
|
1999-02-14 14:33:31 -05:00
|
|
|
@@ -2311,6 +2347,16 @@
|
1999-01-25 09:46:10 -05:00
|
|
|
gas=yes
|
|
|
|
fixincludes=Makefile.in
|
|
|
|
;;
|
|
|
|
+ mips*el-*-openbsd*) # mips little endian
|
|
|
|
+ target_cpu_default="MASK_GAS|MASK_ABICALLS"
|
|
|
|
+ tm_file=mips/openbsd.h
|
1999-02-11 18:54:48 -05:00
|
|
|
+ xmake_file=none
|
1999-01-25 09:46:10 -05:00
|
|
|
+ ;;
|
|
|
|
+ mips*-*-openbsd*) # mips big endian
|
|
|
|
+ target_cpu_default="MASK_GAS|MASK_ABICALLS"
|
|
|
|
+ tm_file=mips/openbsd-be.h
|
1999-02-11 18:54:48 -05:00
|
|
|
+ xmake_file=none
|
1999-01-25 09:46:10 -05:00
|
|
|
+ ;;
|
|
|
|
mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
|
|
|
|
tm_file="mips/news4.h ${tm_file}"
|
|
|
|
if test x$stabs = xyes; then
|
1999-02-14 14:33:31 -05:00
|
|
|
@@ -2661,6 +2707,9 @@
|
1999-01-25 09:46:10 -05:00
|
|
|
;;
|
|
|
|
pdp11-*-*)
|
|
|
|
;;
|
|
|
|
+ ns32k-*-openbsd*)
|
|
|
|
+ # Nothing special
|
|
|
|
+ ;;
|
|
|
|
pyramid-*-*)
|
|
|
|
cpu_type=pyr
|
|
|
|
xmake_file=pyr/x-pyr
|
1999-02-14 14:33:31 -05:00
|
|
|
@@ -2673,6 +2722,13 @@
|
1999-01-25 09:46:10 -05:00
|
|
|
xmake_file=romp/x-mach
|
|
|
|
use_collect2=yes
|
|
|
|
;;
|
|
|
|
+ romp-*-openbsd*)
|
|
|
|
+ # Nothing special
|
|
|
|
+ ;;
|
|
|
|
+ powerpc-*-openbsd*)
|
|
|
|
+ tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
|
1999-02-07 07:37:01 -05:00
|
|
|
+ xmake_file=none
|
1999-01-25 09:46:10 -05:00
|
|
|
+ ;;
|
|
|
|
powerpc-*-beos*)
|
|
|
|
cpu_type=rs6000
|
|
|
|
tm_file=rs6000/beos.h
|
1999-02-14 14:33:31 -05:00
|
|
|
@@ -2967,6 +3023,10 @@
|
1999-01-25 09:46:10 -05:00
|
|
|
fixincludes=fixinc.wrap
|
1998-11-24 19:54:02 -05:00
|
|
|
tmake_file=t-netbsd
|
|
|
|
;;
|
1999-01-25 09:46:10 -05:00
|
|
|
+ sparc-*-openbsd*)
|
1999-01-24 16:36:11 -05:00
|
|
|
+ # we need collect2 until our bug is fixed...
|
|
|
|
+ use_collect2=yes
|
1999-01-25 09:46:10 -05:00
|
|
|
+ ;;
|
1998-11-24 19:54:02 -05:00
|
|
|
sparc-*-bsd*)
|
|
|
|
tm_file=sparc/bsd.h
|
1999-01-25 09:46:10 -05:00
|
|
|
;;
|
1999-02-14 14:33:31 -05:00
|
|
|
@@ -3194,6 +3254,9 @@
|
1999-01-25 09:46:10 -05:00
|
|
|
fixincludes=fixinc.wrap
|
|
|
|
tmake_file=t-netbsd
|
|
|
|
float_format=vax
|
|
|
|
+ ;;
|
|
|
|
+ vax-*-openbsd*)
|
|
|
|
+ tmake_file="${tm_file} vax/t-openbsd"
|
|
|
|
;;
|
|
|
|
vax-*-ultrix*) # vaxen running ultrix
|
|
|
|
tm_file="${tm_file} vax/ultrix.h"
|