diff options
author | Jeffrey A Law <law@cygnus.com> | 1999-02-25 01:21:59 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-02-24 18:21:59 -0700 |
commit | 7b8b10405571f0ad0536671c4f90407950d8731f (patch) | |
tree | ca72773b8f0704aec17c82acc308a7abe02770fa | |
parent | 49969cec2275219776d1338e07b42edc7c327a3f (diff) | |
download | gcc-7b8b10405571f0ad0536671c4f90407950d8731f.tar.gz |
[multiple changes]
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 13:15:56 1999 Marc Espie <espie@cvs.openbsd.org>
* alpha/openbsd.h: New file.
* alpha/xm-openbsd.h: New file.
* sparc/openbsd.h: New file.
* sparc/xm-openbsd.h: New file.
* m68k/openbsd.h: New file.
* m68k/xm-openbsd.h: New file.
* i386/openbsd.h: New file, originally from netbsd.
* i386/xm-openbsd.h: New file.
From-SVN: r25425
-rw-r--r-- | gcc/ChangeLog | 18 | ||||
-rwxr-xr-x | gcc/configure | 67 | ||||
-rw-r--r-- | gcc/configure.in | 65 |
3 files changed, 147 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a7a8610ece4..4cfd70995b1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,23 @@ Wed Feb 24 23:17:41 1999 Jeffrey A Law (law@cygnus.com) + 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 13:15:56 1999 Marc Espie <espie@cvs.openbsd.org> + * alpha/openbsd.h: New file. + * alpha/xm-openbsd.h: New file. + * sparc/openbsd.h: New file. + * sparc/xm-openbsd.h: New file. + * m68k/openbsd.h: New file. + * m68k/xm-openbsd.h: New file. + * i386/openbsd.h: New file, originally from netbsd. + * i386/xm-openbsd.h: New file. + Wed Nov 19 12:56:54 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * configure.in: Fix check for <inttypes.h>. * configure: Rebuilt. diff --git a/gcc/configure b/gcc/configure index 83cf074568c..db856389dbe 100755 --- a/gcc/configure +++ b/gcc/configure @@ -2307,11 +2307,23 @@ for machine in $build $host $target; do 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 @@ -2392,6 +2404,12 @@ for machine in $build $host $target; do 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 [ x$stabs = xyes ] @@ -2548,6 +2566,10 @@ for machine in $build $host $target; do 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 @@ -2850,6 +2872,12 @@ for machine in $build $host $target; do fixincludes=fixinc.wrap tmake_file=t-netbsd ;; + i[34567]86-*-openbsd*) + # 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 + ;; i[34567]86-*-coff*) tm_file=i386/i386-coff.h tmake_file=i386/t-i386bare @@ -3619,6 +3647,11 @@ for machine in $build $host $target; do 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 @@ -3742,6 +3775,9 @@ for machine in $build $host $target; do 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" @@ -3939,6 +3975,16 @@ for machine in $build $host $target; do fixincludes=fixinc.wrap tmake_file=t-netbsd ;; + 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 [ x$stabs = xyes ]; then @@ -4275,6 +4321,9 @@ for machine in $build $host $target; do ;; pdp11-*-*) ;; + ns32k-*-openbsd*) + # Nothing special + ;; pyramid-*-*) cpu_type=pyr xmake_file=pyr/x-pyr @@ -4287,6 +4336,13 @@ for machine in $build $host $target; do 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 @@ -4565,6 +4621,10 @@ for machine in $build $host $target; do 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 ;; @@ -4759,6 +4819,9 @@ for machine in $build $host $target; do 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 @@ -5331,7 +5394,7 @@ fi # Figure out what assembler alignment features are present. echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 -echo "configure:5335: checking assembler alignment features" >&5 +echo "configure:5398: checking assembler alignment features" >&5 gcc_cv_as= gcc_cv_as_alignment_features= gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,gcc$,gas,'` diff --git a/gcc/configure.in b/gcc/configure.in index 951bfdce7cd..1f3711f338f 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -328,11 +328,23 @@ for machine in $build $host $target; do 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 @@ -413,6 +425,12 @@ for machine in $build $host $target; do 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 [[ x$stabs = xyes ]] @@ -569,6 +587,10 @@ for machine in $build $host $target; do 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 @@ -871,6 +893,12 @@ for machine in $build $host $target; do fixincludes=fixinc.wrap tmake_file=t-netbsd ;; + i[[34567]]86-*-openbsd*) + # 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 + ;; i[[34567]]86-*-coff*) tm_file=i386/i386-coff.h tmake_file=i386/t-i386bare @@ -1640,6 +1668,11 @@ for machine in $build $host $target; do 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 @@ -1763,6 +1796,9 @@ for machine in $build $host $target; do 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" @@ -1960,6 +1996,16 @@ for machine in $build $host $target; do fixincludes=fixinc.wrap tmake_file=t-netbsd ;; + 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 [[ x$stabs = xyes ]]; then @@ -2296,6 +2342,9 @@ for machine in $build $host $target; do ;; pdp11-*-*) ;; + ns32k-*-openbsd*) + # Nothing special + ;; pyramid-*-*) cpu_type=pyr xmake_file=pyr/x-pyr @@ -2308,6 +2357,13 @@ for machine in $build $host $target; do 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 @@ -2586,6 +2642,10 @@ for machine in $build $host $target; do 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 ;; @@ -2780,6 +2840,9 @@ for machine in $build $host $target; do 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 |