diff options
Diffstat (limited to 'gcc/config/sparc')
28 files changed, 26 insertions, 72 deletions
diff --git a/gcc/config/sparc/aout.h b/gcc/config/sparc/aout.h index f640eb93504..217430eeb82 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 ee5af67f5f6..0c44541103b 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 78fcda5f6fc..53fbf7fa69e 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 a15f8710b12..566d722971f 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 22c47e11e28..f7404438615 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 e2340c3bdf0..73a31cc0dd3 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 0181d66fd6a..1c4525c500f 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 b88b7394090..b1a6ef5f8f3 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 bcbf61fda90..45216b2f522 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 2d92d6bd4cf..0fc5bd10906 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 bf61741318d..27dfa9661f9 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 eeb773042bb..9db8049d4cf 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 cfc95f28b8c..108ff33ca44 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 a5d2be6f5e4..40db497b4a7 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 8433cfc2a92..c9d89cad6fe 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 a82498791b9..3847fae1506 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 4f0cef8461e..aee098bce28 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 ea3433d4d0d..81839739c83 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 cdd8f4c2361..3aac97859e3 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 78a26cb609c..ed319253208 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 412738d98ac..5ae99e31e44 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 00000000000..f85111ab7eb --- /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 cd85f01ec9a..922dd339151 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 d2a53c1f237..19ff33e41be 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 ecff5b54558..12c3fdf260f 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 9573dbe1312..ea2ed5eaf5a 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 1b5a70a3920..da3e59105d8 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 5a4cd0c6ec0..ecfe25b6c34 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 |