Commit 1b4a979b by Marc Espie Committed by Jeff Law

* configure.in :Handle OpenBSD platforms.

        * configure: Rebuilt.
        * config/openbsd.h: New file.
        * config/xm-openbsd.h: New file.
        * config/t-openbsd: New file.
        * config/t-openbsd-thread: New file.

From-SVN: r25293
parent fab7445a
Thu Feb 18 19:59:37 1999 Marc Espie <espie@cvs.openbsd.org>
* configure.in :Handle OpenBSD platforms.
* configure: Rebuilt.
* config/openbsd.h: New file.
* config/xm-openbsd.h: New file.
* config/t-openbsd: New file.
* config/t-openbsd-thread: New file.
Thu Feb 18 18:47:09 1999 Jeffrey A Law (law@cygnus.com)
* function.c (assign_stack_temp_for_type): Round SIZE before calling
......
# Don't run fixproto
STMP_FIXPROTO =
# We don't need GCC's own include files but we do need lang specific ones.
USER_H = ${LANG_EXTRA_HEADERS}
INSTALL_ASSERT_H =
# This is currently needed to compile libgcc2 for threads support
TARGET_LIBGCC2_CFLAGS=-pthread
#T_CFLAGS=-pthread
#T_CPPFLAGS=-pthread
/* Configuration fragment for hosts running a version of OpenBSD.
Copyright (C) 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* This file gets included by all architectures. It holds stuff
that ought to be defined when hosting a compiler on an OpenBSD
machine, independently of the architecture. It's included by
${cpu_type}/xm-openbsd.h, not included directly. */
/* OpenBSD is trying to be POSIX-compliant, to the point of fixing
problems that may occur with gcc's interpretation. */
#undef POSIX
#define POSIX
/* Ensure we get gnu C's defaults. */
#ifdef __GNUC__
#define alloca __builtin_alloca
#endif
......@@ -502,11 +502,23 @@ changequote([,])dnl
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"
;;
*-*-openbsd*)
tm_file=${cpu_type}/openbsd.h
# On OpenBSD systems, the headers are okay
fixincludes=Makefile.in
tmake_file="t-libc-ok t-openbsd"
# avoid surprises, always provide an xm-openbsd file
xm_file=${cpu_type}/xm-openbsd.h
if test x$enable_threads = xyes; then
thread_file='posix'
tmake_file="${tmake_file} t-openbsd-thread"
fi
;;
esac
case $machine in
......@@ -586,6 +598,12 @@ changequote([,])dnl
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
......@@ -780,6 +798,10 @@ changequote([,])dnl
h8300-*-*)
float_format=i32
;;
hppa*-*-openbsd*)
target_cpu_default="MASK_SNAKE"
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
......@@ -1107,10 +1129,8 @@ changequote([,])dnl
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*)
changequote([,])dnl
tm_file=i386/netbsd.h
# On NetBSD, the headers are already okay, except for math.h.
......@@ -1118,6 +1138,14 @@ changequote([,])dnl
tmake_file=t-netbsd
;;
changequote(,)dnl
i[34567]86-*-openbsd*)
changequote([,])dnl
# Remove when the math emulator is fixed
target_cpu_default="MASK_NO_FANCY_MATH_387"
# we need collect2 until our bug is fixed...
use_collect2=yes
;;
changequote(,)dnl
i[34567]86-*-coff*)
changequote([,])dnl
tm_file=i386/i386-coff.h
......@@ -1980,6 +2008,11 @@ changequote([,])dnl
tmake_file=t-netbsd
float_format=m68k
;;
m68k*-*-openbsd*)
float_format=m68k
# we need collect2 until our bug is fixed...
use_collect2=yes
;;
m68k-*-sysv3*) # Motorola m68k's running system V.3
xm_file="xm-alloca.h ${xm_file}"
xm_defines=USG
......@@ -2103,6 +2136,9 @@ changequote([,])dnl
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"
......@@ -2311,6 +2347,16 @@ changequote([,])dnl
gas=yes
fixincludes=Makefile.in
;;
mips*el-*-openbsd*) # mips little endian
target_cpu_default="MASK_GAS|MASK_ABICALLS"
tm_file=mips/openbsd.h
xmake_file=none
;;
mips*-*-openbsd*) # mips big endian
target_cpu_default="MASK_GAS|MASK_ABICALLS"
tm_file=mips/openbsd-be.h
xmake_file=none
;;
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
......@@ -2661,6 +2707,9 @@ changequote([,])dnl
;;
pdp11-*-*)
;;
ns32k-*-openbsd*)
# Nothing special
;;
pyramid-*-*)
cpu_type=pyr
xmake_file=pyr/x-pyr
......@@ -2673,6 +2722,13 @@ changequote([,])dnl
xmake_file=romp/x-mach
use_collect2=yes
;;
romp-*-openbsd*)
# Nothing special
;;
powerpc-*-openbsd*)
tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
xmake_file=none
;;
powerpc-*-beos*)
cpu_type=rs6000
tm_file=rs6000/beos.h
......@@ -2967,6 +3023,10 @@ changequote([,])dnl
fixincludes=fixinc.wrap
tmake_file=t-netbsd
;;
sparc-*-openbsd*)
# we need collect2 until our bug is fixed...
use_collect2=yes
;;
sparc-*-bsd*)
tm_file=sparc/bsd.h
;;
......@@ -3195,6 +3255,9 @@ changequote([,])dnl
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"
use_collect2=yes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment