diff options
author | David O'Brien <obrien@FreeBSD.org> | 2001-11-12 23:52:28 +0000 |
---|---|---|
committer | David O'Brien <obrien@gcc.gnu.org> | 2001-11-12 23:52:28 +0000 |
commit | 0f658c83b529f23e76e006461ad2595d04dbed4c (patch) | |
tree | ac35d8ace976f2a77ff34f6b921c6c57d909c3eb /gcc/config | |
parent | 222bde4319e706b678dbe902f04c583323bcb18f (diff) | |
download | gcc-0f658c83b529f23e76e006461ad2595d04dbed4c.zip gcc-0f658c83b529f23e76e006461ad2595d04dbed4c.tar.gz gcc-0f658c83b529f23e76e006461ad2595d04dbed4c.tar.bz2 |
config.gcc (sparc-tti-*, [...]): Include various CPU headers via tm_file.
2001-11-12 David O'Brien <obrien@FreeBSD.org>
* config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
sparc64-*-linux*): Include various CPU headers via tm_file.
* config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
(SELECT_SECTION): Likewise.
(SELECT_RTX_SECTION): Likewise.
* config/sparc/sparc_bi.h: New file.
* config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
* config/sparc/linux-aout.h: Likewise.
* config/sparc/linux.h: Don't include sparc/sysv4.h.
* config/sparc/linux64.h: Likewise.
(SPARC_BI_ARCH): Don't define. sparc_bi.h will do it instead.
* config/sparc/lite.h: Don't include sparc/sparc.h and gofast.h.
* config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
and dbxcoff.h
(ASM_OUTPUT_IDENT): Do not #undef.
(SELECT_SECTION): Likewise.
(SELECT_RTX_SECTION): Likewise.
* config/sparc/liteelf.h: Don't include gofast.h.
* config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
* config/sparc/lynx.h: Don't include sparc/sparc.h.
* config/sparc/pbd.h: Likewise.
* config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
* config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
* config/sparc/rtemself.h: Don't include rtems.h.
* config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
* config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
sparc_bi.h instead.
* config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
* config/sparc/sol2.h: Include sparc/sparc.h directly.
* config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
* config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
* config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
* config/sparc/sp86x-elf.h: Don't include gofast.h.
* config/sparc/splet.h: Don't include sparc/aout.h.
* config/sparc/sun4o3.h: Don't include sparc/sparc.h.
* config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
* config/sparc/vxsim.h: Don't include sparc/sysv4.h.
* config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
* config/sparc/vxsparc64.h: Don't include gofast.h.
(SPARC_BI_ARCH): Don't define. sparc_bi.h will do it instead.
Approved by: David S. Miller <davem@redhat.com>
Message-Id: <20011112.151527.70477368.davem@redhat.com>
From-SVN: r46969
Diffstat (limited to 'gcc/config')
29 files changed, 29 insertions, 72 deletions
diff --git a/gcc/config/sparc/aout.h b/gcc/config/sparc/aout.h index f640eb9..217430e 100644 --- a/gcc/config/sparc/aout.h +++ b/gcc/config/sparc/aout.h @@ -19,8 +19,5 @@ 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. */ -#include "sparc/sparc.h" /* SPARC definitions */ -#include "aoutos.h" /* A.out definitions */ - #undef CPP_PREDEFINES #define CPP_PREDEFINES "-Dsparc -Acpu=sparc -Amachine=sparc" diff --git a/gcc/config/sparc/linux-aout.h b/gcc/config/sparc/linux-aout.h index ee5af67..0c44541 100644 --- a/gcc/config/sparc/linux-aout.h +++ b/gcc/config/sparc/linux-aout.h @@ -19,9 +19,6 @@ 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. */ -#include <aoutos.h> -#include <sparc/sparc.h> - /* Don't assume anything about the header files. */ #define NO_IMPLICIT_EXTERN_C diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h index 78fcda5..53fbf7f 100644 --- a/gcc/config/sparc/linux.h +++ b/gcc/config/sparc/linux.h @@ -35,8 +35,6 @@ Boston, MA 02111-1307, USA. */ /* Use stabs instead of DWARF debug format. */ #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG -#include <sparc/sysv4.h> - #undef MD_EXEC_PREFIX #undef MD_STARTFILE_PREFIX diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h index a15f871..566d722 100644 --- a/gcc/config/sparc/linux64.h +++ b/gcc/config/sparc/linux64.h @@ -19,15 +19,11 @@ 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. */ -#define SPARC_BI_ARCH - #define LINUX_DEFAULT_ELF /* Don't assume anything about the header files. */ #define NO_IMPLICIT_EXTERN_C -#include <sparc/sysv4.h> - #undef MD_EXEC_PREFIX #undef MD_STARTFILE_PREFIX diff --git a/gcc/config/sparc/lite.h b/gcc/config/sparc/lite.h index 22c47e1..f740443 100644 --- a/gcc/config/sparc/lite.h +++ b/gcc/config/sparc/lite.h @@ -19,8 +19,6 @@ 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. */ -#include "sparc/sparc.h" - #undef CPP_PREDEFINES #define CPP_PREDEFINES "-Dsparc -Dsparclite -Acpu=sparc -Amachine=sparc" @@ -33,6 +31,5 @@ Boston, MA 02111-1307, USA. */ #define TARGET_DEFAULT (MASK_APP_REGS + MASK_EPILOGUE) /* US Software GOFAST library support. */ -#include "gofast.h" #undef INIT_SUBTARGET_OPTABS #define INIT_SUBTARGET_OPTABS INIT_GOFAST_OPTABS diff --git a/gcc/config/sparc/litecoff.h b/gcc/config/sparc/litecoff.h index e2340c3..73a31cc 100644 --- a/gcc/config/sparc/litecoff.h +++ b/gcc/config/sparc/litecoff.h @@ -19,16 +19,8 @@ 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. */ -#include "sparc/lite.h" - -#undef ASM_OUTPUT_IDENT - -#undef SELECT_SECTION -#undef SELECT_RTX_SECTION #define BSS_SECTION_ASM_OP "\t.section\t\".bss\"" -#include "svr3.h" - #undef CPP_PREDEFINES #define CPP_PREDEFINES "-Dsparc -Dsparclite -Acpu=sparc -Amachine=sparc" @@ -36,8 +28,6 @@ Boston, MA 02111-1307, USA. */ #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG -#include "dbxcoff.h" - /* Support the ctors and dtors sections for g++. */ #undef INIT_SECTION_ASM_OP diff --git a/gcc/config/sparc/liteelf.h b/gcc/config/sparc/liteelf.h index 0181d66..1c4525c 100644 --- a/gcc/config/sparc/liteelf.h +++ b/gcc/config/sparc/liteelf.h @@ -39,7 +39,6 @@ Boston, MA 02111-1307, USA. */ #define TARGET_DEFAULT (MASK_APP_REGS + MASK_EPILOGUE) /* US Software GOFAST library support. */ -#include "gofast.h" #undef INIT_SUBTARGET_OPTABS #define INIT_SUBTARGET_OPTABS INIT_GOFAST_OPTABS diff --git a/gcc/config/sparc/lynx-ng.h b/gcc/config/sparc/lynx-ng.h index b88b739..b1a6ef5 100644 --- a/gcc/config/sparc/lynx-ng.h +++ b/gcc/config/sparc/lynx-ng.h @@ -18,9 +18,6 @@ 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. */ -#include <sparc/sparc.h> -#include <lynx-ng.h> - /* ??? Must redefine to get sparclite and v8 defines. Can this be done differently? */ diff --git a/gcc/config/sparc/lynx.h b/gcc/config/sparc/lynx.h index bcbf61f..45216b2 100644 --- a/gcc/config/sparc/lynx.h +++ b/gcc/config/sparc/lynx.h @@ -18,8 +18,6 @@ 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. */ -#include <sparc/sparc.h> - #undef ASM_OUTPUT_IDENT #undef SELECT_SECTION #undef SELECT_RTX_SECTION diff --git a/gcc/config/sparc/netbsd.h b/gcc/config/sparc/netbsd.h index 2d92d6b..0fc5bd1 100644 --- a/gcc/config/sparc/netbsd.h +++ b/gcc/config/sparc/netbsd.h @@ -1,9 +1,3 @@ -#include <sparc/sparc.h> - -/* Get generic NetBSD definitions. */ - -#include <netbsd.h> - /* Names to predefine in the preprocessor for this target machine. */ #undef CPP_PREDEFINES diff --git a/gcc/config/sparc/pbd.h b/gcc/config/sparc/pbd.h index bf61741..27dfa96 100644 --- a/gcc/config/sparc/pbd.h +++ b/gcc/config/sparc/pbd.h @@ -19,7 +19,6 @@ 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. */ -#include "sparc/sparc.h" /* Names to predefine in the preprocessor for this target machine. */ diff --git a/gcc/config/sparc/rtems.h b/gcc/config/sparc/rtems.h index eeb7730..9db8049 100644 --- a/gcc/config/sparc/rtems.h +++ b/gcc/config/sparc/rtems.h @@ -19,7 +19,6 @@ 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. */ -#include "sparc/aout.h" /* Specify predefined symbols in preprocessor. */ @@ -31,6 +30,3 @@ Boston, MA 02111-1307, USA. */ #ifndef TARGET_MEM_FUNCTIONS #define TARGET_MEM_FUNCTIONS #endif - -/* Get machine-independent configuration parameters for RTEMS. */ -#include <rtems.h> diff --git a/gcc/config/sparc/rtemself.h b/gcc/config/sparc/rtemself.h index cfc95f2..108ff33 100644 --- a/gcc/config/sparc/rtemself.h +++ b/gcc/config/sparc/rtemself.h @@ -29,7 +29,3 @@ Boston, MA 02111-1307, USA. */ #ifndef TARGET_MEM_FUNCTIONS #define TARGET_MEM_FUNCTIONS #endif - -/* Get machine-independent configuration parameters for RTEMS. */ -#include <rtems.h> - diff --git a/gcc/config/sparc/sol2-64.h b/gcc/config/sparc/sol2-64.h index a5d2be6..40db497 100644 --- a/gcc/config/sparc/sol2-64.h +++ b/gcc/config/sparc/sol2-64.h @@ -1,8 +1,6 @@ /* Definitions of target machine for GNU compiler, for 64-bit SPARC running Solaris 2 using the GNU linker. */ -#include "sparc/sol2-sld-64.h" - #ifdef LINKER_DOES_NOT_WORK_WITH_DWARF2 #undef LINKER_DOES_NOT_WORK_WITH_DWARF2 #endif diff --git a/gcc/config/sparc/sol2-sld-64.h b/gcc/config/sparc/sol2-sld-64.h index 8433cfc..c9d89ca 100644 --- a/gcc/config/sparc/sol2-sld-64.h +++ b/gcc/config/sparc/sol2-sld-64.h @@ -2,9 +2,7 @@ running Solaris 2 using the system linker. */ #ifdef AS_SPARC64_FLAG - -#define SPARC_BI_ARCH - +#include "sparc/sparc_bi.h" #endif #include "sparc/sol2.h" diff --git a/gcc/config/sparc/sol2-sld.h b/gcc/config/sparc/sol2-sld.h index a824987..3847fae 100644 --- a/gcc/config/sparc/sol2-sld.h +++ b/gcc/config/sparc/sol2-sld.h @@ -1,8 +1,6 @@ /* Definitions of target machine for GNU compiler, for SPARC running Solaris 2 using the system linker. */ -#include "sparc/sol2.h" - /* At least up through Solaris 2.6, the system linker does not work with DWARF or DWARF2, since it does not have working support for relocations diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h index 4f0cef8..aee098b 100644 --- a/gcc/config/sparc/sol2.h +++ b/gcc/config/sparc/sol2.h @@ -22,6 +22,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Supposedly the same as vanilla sparc svr4, except for the stuff below: */ +#include "sparc/sparc.h" #include "sparc/sysv4.h" /* Solaris 2 uses a wint_t different from the default. This is required diff --git a/gcc/config/sparc/sp64-aout.h b/gcc/config/sparc/sp64-aout.h index ea3433d..8183973 100644 --- a/gcc/config/sparc/sp64-aout.h +++ b/gcc/config/sparc/sp64-aout.h @@ -19,8 +19,6 @@ 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. */ -#include "sparc/sparc.h" -#include "aoutos.h" #undef TARGET_VERSION #define TARGET_VERSION fprintf (stderr, " (sparc64-aout)") diff --git a/gcc/config/sparc/sp64-elf.h b/gcc/config/sparc/sp64-elf.h index cdd8f4c..3aac978 100644 --- a/gcc/config/sparc/sp64-elf.h +++ b/gcc/config/sparc/sp64-elf.h @@ -25,8 +25,6 @@ Boston, MA 02111-1307, USA. */ less duplicate all of svr4.h, sparc/sysv4.h, and sparc/sol2.h here (suitably cleaned up). */ -#include "sparc/sol2.h" - #undef TARGET_VERSION #define TARGET_VERSION fprintf (stderr, " (sparc64-elf)") diff --git a/gcc/config/sparc/sp86x-aout.h b/gcc/config/sparc/sp86x-aout.h index 78a26cb..ed31925 100644 --- a/gcc/config/sparc/sp86x-aout.h +++ b/gcc/config/sparc/sp86x-aout.h @@ -18,7 +18,6 @@ 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. */ -#include "sparc/sparc.h" #undef CPP_PREDEFINES #define CPP_PREDEFINES "-D__sparc__ -D__sparclite86x__ -Acpu=sparc -Amachine=sparc" @@ -35,7 +34,6 @@ Boston, MA 02111-1307, USA. */ #define ASM_SPEC "%{v:-v} %{mlittle-endian-data:--little-endian-data} %(asm_cpu)" /* US Software GOFAST library support. */ -#include "gofast.h" #undef INIT_SUBTARGET_OPTABS #define INIT_SUBTARGET_OPTABS INIT_GOFAST_OPTABS diff --git a/gcc/config/sparc/sp86x-elf.h b/gcc/config/sparc/sp86x-elf.h index 412738d..5ae99e3 100644 --- a/gcc/config/sparc/sp86x-elf.h +++ b/gcc/config/sparc/sp86x-elf.h @@ -42,7 +42,6 @@ Boston, MA 02111-1307, USA. */ #define ASM_SPEC "%{v:-V} %{mlittle-endian-data:--little-endian-data} %(asm_cpu)" /* US Software GOFAST library support. */ -#include "gofast.h" #undef INIT_SUBTARGET_OPTABS #define INIT_SUBTARGET_OPTABS INIT_GOFAST_OPTABS diff --git a/gcc/config/sparc/sparc_bi.h b/gcc/config/sparc/sparc_bi.h new file mode 100644 index 0000000..f85111a --- /dev/null +++ b/gcc/config/sparc/sparc_bi.h @@ -0,0 +1,24 @@ +/* Definitions of target machine for GNU compiler, for Sun SPARC. + Copyright (C) 2001 Free Software Foundation, Inc. + Contributed by David E. O'Brien <obrien@FreeBSD.org>. + +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. */ + +/* Specify this in a cover file to provide bi-architecture (32/64) support. */ + +#define SPARC_BI_ARCH diff --git a/gcc/config/sparc/splet.h b/gcc/config/sparc/splet.h index cd85f01..922dd33 100644 --- a/gcc/config/sparc/splet.h +++ b/gcc/config/sparc/splet.h @@ -19,8 +19,6 @@ 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. */ -#include "sparc/aout.h" - #undef TARGET_DEFAULT #define TARGET_DEFAULT (MASK_APP_REGS + MASK_EPILOGUE) diff --git a/gcc/config/sparc/sun4o3.h b/gcc/config/sparc/sun4o3.h index d2a53c1..19ff33e 100644 --- a/gcc/config/sparc/sun4o3.h +++ b/gcc/config/sparc/sun4o3.h @@ -1,5 +1,3 @@ -#include "sparc/sparc.h" - /* Override the name of the mcount profiling function. */ #undef MCOUNT_FUNCTION diff --git a/gcc/config/sparc/sysv4.h b/gcc/config/sparc/sysv4.h index ecff5b5..12c3fdf 100644 --- a/gcc/config/sparc/sysv4.h +++ b/gcc/config/sparc/sysv4.h @@ -20,8 +20,6 @@ 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. */ -/* TODO: convert includes to ${tm_file} list in config.gcc. */ -#include "sparc/sparc.h" /* Undefine some symbols which are defined in "sparc.h" but which are appropriate only for SunOS 4.x, and not for svr4. */ diff --git a/gcc/config/sparc/vxsim.h b/gcc/config/sparc/vxsim.h index 9573dbe..ea2ed5e 100644 --- a/gcc/config/sparc/vxsim.h +++ b/gcc/config/sparc/vxsim.h @@ -19,7 +19,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Supposedly the same as vanilla sparc svr4, except for the stuff below: */ -#include "sparc/sysv4.h" #undef CPP_PREDEFINES #define CPP_PREDEFINES \ diff --git a/gcc/config/sparc/vxsparc.h b/gcc/config/sparc/vxsparc.h index 1b5a70a..da3e591 100644 --- a/gcc/config/sparc/vxsparc.h +++ b/gcc/config/sparc/vxsparc.h @@ -19,7 +19,6 @@ 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. */ -#include "sparc/aout.h" /* Specify what to link with. */ /* VxWorks does all the library stuff itself. */ @@ -56,6 +55,5 @@ Boston, MA 02111-1307, USA. */ #define WCHAR_TYPE_SIZE 8 /* US Software GOFAST library support. */ -#include "gofast.h" #undef INIT_SUBTARGET_OPTABS #define INIT_SUBTARGET_OPTABS INIT_GOFAST_OPTABS diff --git a/gcc/config/sparc/vxsparc64.h b/gcc/config/sparc/vxsparc64.h index 5a4cd0c..ecfe25b 100644 --- a/gcc/config/sparc/vxsparc64.h +++ b/gcc/config/sparc/vxsparc64.h @@ -19,8 +19,6 @@ 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. */ -/* Specify this in a cover file to provide bi-architecture (32/64) support. */ -#define SPARC_BI_ARCH /* Specify what to link with. */ /* VxWorks does all the library stuff itself. */ @@ -90,6 +88,5 @@ Boston, MA 02111-1307, USA. */ #define WCHAR_TYPE_SIZE 8 /* US Software GOFAST library support. */ -#include "gofast.h" #undef INIT_SUBTARGET_OPTABS #define INIT_SUBTARGET_OPTABS INIT_GOFAST_OPTABS diff --git a/gcc/config/svr3.h b/gcc/config/svr3.h index b1b9ece..3e17c65 100644 --- a/gcc/config/svr3.h +++ b/gcc/config/svr3.h @@ -119,6 +119,7 @@ Boston, MA 02111-1307, USA. /* Output #ident as a .ident. */ +#undef ASM_OUTPUT_IDENT #define ASM_OUTPUT_IDENT(FILE, NAME) \ fprintf (FILE, "\t.ident \"%s\"\n", NAME); @@ -301,6 +302,7 @@ const_section () \ or a constant of some sort. RELOC indicates whether forming the initial value of DECL requires link-time relocations. */ +#undef SELECT_SECTION #define SELECT_SECTION(DECL,RELOC,ALIGN) \ { \ if (TREE_CODE (DECL) == STRING_CST) \ @@ -331,4 +333,5 @@ const_section () \ in the case of a `const_int' rtx. Currently, these always go into the const section. */ +#undef SELECT_RTX_SECTION #define SELECT_RTX_SECTION(MODE,RTX,ALIGN) const_section() |