summaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-24 02:56:23 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-24 02:56:23 +0000
commit6396cc37141180db4d2c8f73cab4f5977d8a1e19 (patch)
tree611b7c19931269b92d455ba78be01fea92ceb74f /gcc/config.gcc
parent7206da1bce6e7a9272829191a94c704a400f023c (diff)
downloadgcc-6396cc37141180db4d2c8f73cab4f5977d8a1e19.tar.gz
Patch from Robert Millan.
* config.gcc: Merge kfreebsd*-gnu with linux* and add knetbsd*-gnu. * config/i386/linux.h: Allow overriding of LINK_EMULATION, DYNAMIC_LINKER and register names in sc_ structure. * config/kfreebsd-gnu.h: New. kfreebsd-gnu followup for linux.h. * config/i386/kfreebsd-gnu.h: New. Ditto for i386-kfreebsd-gnu. * config/knetbsd-gnu.h: New. Ditto for knetbsd-gnu. * config/i386/knetbsd-gnu.h: New. Ditto for i386-knetbsd-gnu. * config/kfreebsdgnu.h: Remove. * config/t-kfreebsd-gnu: Likewise. * config/i386/kfreebsdgnu.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83577 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc27
1 files changed, 7 insertions, 20 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index fd226dc215b..aa0399614f0 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -412,21 +412,10 @@ case ${target} in
esac
fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
;;
-*-*-kfreebsd*-gnu)
- # Must come before *-*-gnu*
- xm_defines=POSIX # needed for cross-compiling from FreeBSD?
- extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
- # GNU tools are the only tools.
- gas=yes
- gnu_ld=yes
- case ${enable_threads} in
- "" | yes | posix) thread_file='posix' ;;
- esac
- ;;
*-*-linux*libc1* | *-*-linux*aout*)
# Avoid the generic linux case.
;;
-*-*-linux* | frv-*-*linux*)
+*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
# Must come before *-*-gnu* (because of *-*-linux-gnu* systems).
extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
gas=yes
@@ -926,10 +915,14 @@ i[34567]86-*-coff*)
tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
use_fixproto=yes
;;
-i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
+i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu)
+ # Intel 80386's running GNU/*
# with ELF format using glibc 2
- # aka GNU/Linux C library 6
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
+ case ${target} in
+ i[34567]86-*-knetbsd*-gnu) tm_file="${tm_file} knetbsd-gnu.h i386/knetbsd-gnu.h" ;;
+ i[34567]86-*-kfreebsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu.h" ;;
+ esac
tmake_file="${tmake_file} i386/t-crtstuff"
;;
x86_64-*-linux*)
@@ -937,12 +930,6 @@ x86_64-*-linux*)
i386/x86-64.h i386/linux64.h"
tmake_file="${tmake_file} i386/t-linux64"
;;
-i[34567]86-*-kfreebsd*-gnu) # must be before i[34567]86-*-gnu*
- tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h kfreebsdgnu.h i386/kfreebsdgnu.h"
- tmake_file="t-slibgcc-elf-ver t-kfreebsd-gnu i386/t-crtstuff"
- float_format=i386
- use_fixproto=no
- ;;
i[34567]86-*-gnu*)
;;
i[34567]86-pc-msdosdjgpp*)