aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorDavid O'Brien <obrien@BSDi.com>2001-01-09 22:10:53 +0000
committerDavid O'Brien <obrien@gcc.gnu.org>2001-01-09 22:10:53 +0000
commitf6e0c56ca228330504fce807b06e40c5033af260 (patch)
tree3076d5204e54613b31fa437eae06326554d4d440 /gcc/config.gcc
parente556ad197c23631cb6878a2ea8c826a5b314d19d (diff)
downloadgcc-f6e0c56ca228330504fce807b06e40c5033af260.zip
gcc-f6e0c56ca228330504fce807b06e40c5033af260.tar.gz
gcc-f6e0c56ca228330504fce807b06e40c5033af260.tar.bz2
config.gcc (*-*-gnu*, [...]): Specify needed platform specific files in tm_file.
2001-01-09 David O'Brien <obrien@BSDi.com> * config.gcc (*-*-gnu*, i[34567]86-*-elf*, i[34567]86-*-linux*libc1, i[34567]86-*-linux*, i[34567]86-*-moss*): Specify needed platform specific files in tm_file. * config/i386/gnu.h: Don't include required platform specific .h files, tm.h will do it instead. * config/i386/i386elf.h: Likewise. * config/i386/linux.h: Likewise. * config/i386/moss.h: Likewise. * config/mips/gnu.h: Likewise. Approved by: Richard Henderson <rth@redhat.com> Message-ID: <20010107030000.A24090@redhat.com> From-SVN: r38842
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc18
1 files changed, 13 insertions, 5 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 5f47b24..1408777 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -265,7 +265,7 @@ case $machine in
# each different CPU. The specific machines that we
# support are matched above and just set $cpu_type.
xm_file="xm-gnu.h ${xm_file}"
- tm_file=${cpu_type}/gnu.h
+ tm_file="${cpu_type}/gnu.h"
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
# GNU always uses ELF.
elf=yes
@@ -276,6 +276,14 @@ case $machine in
xmake_file=x-linux
# But here we need a little extra magic.
tmake_file="t-linux t-gnu"
+ case $machine in
+ i[34567]86-*-*)
+ tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}"
+ ;;
+ mips*-*-*)
+ tm_file="svr4.h ${cpu_type}/${cpu_type}.h ${tm_file}"
+ ;;
+ esac
;;
*-*-openbsd*)
tm_file=${cpu_type}/openbsd.h
@@ -971,7 +979,7 @@ i370-*-linux*)
;;
i[34567]86-*-elf*)
xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
- tm_file=i386/i386elf.h
+ tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h"
tmake_file=i386/t-i386elf
xmake_file=x-svr4
;;
@@ -1158,7 +1166,7 @@ i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
# with ELF format using the
# GNU/Linux C library 5
xmake_file=x-linux
- tm_file=i386/linux.h
+ tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
gnu_ld=yes
@@ -1171,7 +1179,7 @@ i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
# with ELF format using glibc 2
# aka GNU/Linux C library 6
xmake_file=x-linux
- tm_file=i386/linux.h
+ tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
tmake_file="t-linux i386/t-crtstuff"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
gnu_ld=yes
@@ -1202,7 +1210,7 @@ i[34567]86-pc-msdosdjgpp*)
esac
;;
i[34567]86-moss-msdos* | i[34567]86-*-moss*)
- tm_file=i386/moss.h
+ tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h"
tmake_file=t-libc-ok
gnu_ld=yes
gas=yes