Commit f910b1bb by David O'Brien Committed by David O'Brien

config.gcc (arm*-*-rtems*, [...]): Include various CPU headers via tm_file.

2001-11-16  David O'Brien  <obrien@FreeBSD.org>
	* config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
	arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
	arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
	arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
	arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
	arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
	xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
	* config/arm/aof.h: Don't include arm.h.
	* config/arm/aout.h: Likewise.
	* config/arm/coff.h: Don't include semi.h and aout.h.
	* config/arm/elf.h: Don't include aout.h.
	* config/arm/netbsd.h: Don't include netbsd.h and aout.h.
	(TARGET_VERSION): Undef before defining.
	(ARM_OS_NAME): Likewise
	(TARGET_DEFAULT): Likewise
	(TARGET_MEM_FUNCTIONS): Do not need to undefine now.
	* config/arm/pe.h: Don't include arm/coff.h.
	* config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
	SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
	* config/arm/riscix1-1.h: Likewise.
	* config/arm/rix-gas.h: Don't include riscix.h.
	(DBX_CONTIN_LENGTH): Undef before defining.
	* config/arm/semi.h: Don't include aout.h.
	* config/arm/semiaof.h: Don't include aof.h.
	* config/arm/strongarm-coff.h: Don't include coff.h.
	* config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
	* config/arm/vxarm.h: Don't include arm/coff.h.
	* config/arm/xscale-coff.h: Don't include coff.h.

Approved by:  Nick Clifton <nickc@cambridge.redhat.com>
              <m3ofm2c27q.fsf@north-pole.nickc.cambridge.redhat.com>

From-SVN: r47105
parent 9c8e9f62
2001-11-16 David O'Brien <obrien@FreeBSD.org>
* config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
* config/arm/aof.h: Don't include arm.h.
* config/arm/aout.h: Likewise.
* config/arm/coff.h: Don't include semi.h and aout.h.
* config/arm/elf.h: Don't include aout.h.
* config/arm/netbsd.h: Don't include netbsd.h and aout.h.
(TARGET_VERSION): Undef before defining.
(ARM_OS_NAME): Likewise
(TARGET_DEFAULT): Likewise
(TARGET_MEM_FUNCTIONS): Do not need to undefine now.
* config/arm/pe.h: Don't include arm/coff.h.
* config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
* config/arm/riscix1-1.h: Likewise.
* config/arm/rix-gas.h: Don't include riscix.h.
(DBX_CONTIN_LENGTH): Undef before defining.
* config/arm/semi.h: Don't include aout.h.
* config/arm/semiaof.h: Don't include aof.h.
* config/arm/strongarm-coff.h: Don't include coff.h.
* config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
* config/arm/vxarm.h: Don't include arm/coff.h.
* config/arm/xscale-coff.h: Don't include coff.h.
Fri Nov 16 15:22:35 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> Fri Nov 16 15:22:35 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* config/pa/pa.c: Reflect changes in calling sequences of alter_reg and * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
......
...@@ -593,31 +593,31 @@ arm*-*-linux*) # ARM GNU/Linux with ELF ...@@ -593,31 +593,31 @@ arm*-*-linux*) # ARM GNU/Linux with ELF
esac esac
;; ;;
arm*-*-uclinux*) # ARM ucLinux arm*-*-uclinux*) # ARM ucLinux
tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h" tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h"
tmake_file=arm/t-arm-elf tmake_file=arm/t-arm-elf
;; ;;
arm*-*-aout) arm*-*-aout)
tm_file=arm/aout.h tm_file="arm/aout.h arm/arm.h"
tmake_file=arm/t-arm-aout tmake_file=arm/t-arm-aout
;; ;;
arm*-*-ecos-elf) arm*-*-ecos-elf)
tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/ecos-elf.h" tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
tmake_file=arm/t-arm-elf tmake_file=arm/t-arm-elf
;; ;;
arm*-*-elf) arm*-*-elf)
tm_file="elfos.h arm/unknown-elf.h arm/elf.h" tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
tmake_file=arm/t-arm-elf tmake_file=arm/t-arm-elf
;; ;;
arm*-*-conix*) arm*-*-conix*)
tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/conix-elf.h" tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/conix-elf.h arm/aout.h arm/arm.h"
tmake_file=arm/t-arm-elf tmake_file=arm/t-arm-elf
;; ;;
arm*-*-oabi) arm*-*-oabi)
tm_file="arm/unknown-elf-oabi.h elfos.h arm/unknown-elf.h arm/elf.h" tm_file="arm/unknown-elf-oabi.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
tmake_file=arm/t-arm-elf tmake_file=arm/t-arm-elf
;; ;;
arm-*-pe*) arm-*-pe*)
tm_file=arm/pe.h tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h"
tmake_file=arm/t-pe tmake_file=arm/t-pe
extra_objs="pe.o" extra_objs="pe.o"
;; ;;
...@@ -3133,19 +3133,19 @@ sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux ...@@ -3133,19 +3133,19 @@ sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
float_format=sparc float_format=sparc
;; ;;
strongarm-*-elf*) strongarm-*-elf*)
tm_file="arm/strongarm-elf.h elfos.h arm/unknown-elf.h arm/elf.h" tm_file="arm/strongarm-elf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
tmake_file=arm/t-strongarm-elf tmake_file=arm/t-strongarm-elf
out_file=arm/arm.c out_file=arm/arm.c
md_file=arm/arm.md md_file=arm/arm.md
;; ;;
strongarm-*-coff*) strongarm-*-coff*)
tm_file=arm/strongarm-coff.h tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h"
tmake_file=arm/t-strongarm-coff tmake_file=arm/t-strongarm-coff
out_file=arm/arm.c out_file=arm/arm.c
md_file=arm/arm.md md_file=arm/arm.md
;; ;;
strongarm-*-pe) strongarm-*-pe)
tm_file=arm/strongarm-pe.h tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h arm/pe.h arm/strongarm-pe.h"
tmake_file=arm/t-strongarm-pe tmake_file=arm/t-strongarm-pe
out_file=arm/arm.c out_file=arm/arm.c
md_file=arm/arm.md md_file=arm/arm.md
...@@ -3217,13 +3217,13 @@ we32k-att-sysv*) ...@@ -3217,13 +3217,13 @@ we32k-att-sysv*)
use_collect2=yes use_collect2=yes
;; ;;
xscale-*-elf) xscale-*-elf)
tm_file="arm/xscale-elf.h elfos.h arm/unknown-elf.h arm/elf.h" tm_file="arm/xscale-elf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
tmake_file=arm/t-xscale-elf tmake_file=arm/t-xscale-elf
out_file=arm/arm.c out_file=arm/arm.c
md_file=arm/arm.md md_file=arm/arm.md
;; ;;
xscale-*-coff) xscale-*-coff)
tm_file=arm/xscale-coff.h tm_file="coff.h arm/xscale-coff.h"
tmake_file=arm/t-xscale-coff tmake_file=arm/t-xscale-coff
out_file=arm/arm.c out_file=arm/arm.c
md_file=arm/arm.md md_file=arm/arm.md
......
...@@ -389,6 +389,4 @@ do { \ ...@@ -389,6 +389,4 @@ do { \
fprintf ((STREAM), "\tALIGN %d\n", amount); \ fprintf ((STREAM), "\tALIGN %d\n", amount); \
} while (0) } while (0)
#include "arm/arm.h"
#undef DBX_DEBUGGING_INFO #undef DBX_DEBUGGING_INFO
...@@ -333,5 +333,3 @@ Boston, MA 02111-1307, USA. */ ...@@ -333,5 +333,3 @@ Boston, MA 02111-1307, USA. */
/* This works for GAS and some other assemblers. */ /* This works for GAS and some other assemblers. */
#define SET_ASM_OP "\t.set\t" #define SET_ASM_OP "\t.set\t"
#include "arm.h"
...@@ -21,8 +21,6 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -21,8 +21,6 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include "semi.h"
#include "aout.h"
/* Note - it is important that this definition matches the one in tcoff.h */ /* Note - it is important that this definition matches the one in tcoff.h */
#undef USER_LABEL_PREFIX #undef USER_LABEL_PREFIX
......
...@@ -193,5 +193,3 @@ Boston, MA 02111-1307, USA. */ ...@@ -193,5 +193,3 @@ Boston, MA 02111-1307, USA. */
fprintf (STREAM, "\t.align\t%d\n", POWER); \ fprintf (STREAM, "\t.align\t%d\n", POWER); \
} \ } \
while (0) while (0)
#include "aout.h"
...@@ -20,9 +20,11 @@ the Free Software Foundation, 59 Temple Place - Suite 330, ...@@ -20,9 +20,11 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* Run-time Target Specification. */ /* Run-time Target Specification. */
#undef TARGET_VERSION
#define TARGET_VERSION fputs (" (ARM/NetBSD)", stderr); #define TARGET_VERSION fputs (" (ARM/NetBSD)", stderr);
/* This is used in ASM_FILE_START. */ /* This is used in ASM_FILE_START. */
#undef ARM_OS_NAME
#define ARM_OS_NAME "NetBSD" #define ARM_OS_NAME "NetBSD"
/* Unsigned chars produces much better code than signed. */ /* Unsigned chars produces much better code than signed. */
...@@ -37,15 +39,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -37,15 +39,9 @@ Boston, MA 02111-1307, USA. */
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6 #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
/* Default is to use APCS-32 mode. */ /* Default is to use APCS-32 mode. */
#undef TARGET_DEFAULT
#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_FRAME) #define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_FRAME)
#include "arm/aout.h"
/* This gets redefined in config/netbsd.h. */
#undef TARGET_MEM_FUNCTIONS
#include <netbsd.h>
/* Some defines for CPP. /* Some defines for CPP.
arm32 is the NetBSD port name, so we always define arm32 and __arm32__. */ arm32 is the NetBSD port name, so we always define arm32 and __arm32__. */
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
......
...@@ -29,8 +29,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -29,8 +29,6 @@ Boston, MA 02111-1307, USA. */
#define SUBTARGET_NAME_ENCODING_LENGTHS \ #define SUBTARGET_NAME_ENCODING_LENGTHS \
case ARM_PE_FLAG_CHAR: return 3; case ARM_PE_FLAG_CHAR: return 3;
#include "arm/coff.h"
#undef USER_LABEL_PREFIX #undef USER_LABEL_PREFIX
#define USER_LABEL_PREFIX "_" #define USER_LABEL_PREFIX "_"
......
...@@ -127,11 +127,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -127,11 +127,9 @@ Boston, MA 02111-1307, USA. */
/* The RISCiX assembler does not understand .set */ /* The RISCiX assembler does not understand .set */
#undef SET_ASM_OP #undef SET_ASM_OP
/* Override CPP_SPEC, there's no point handling endianness (and probably /* Add to CPP_SPEC, we want to add the right #defines when using the include
not much point handling apcs_pc), and we want to add the right #defines files. */
when using the include files. */ #define SUBTARGET_CPP_SPEC "\
#undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu_arch) %(cpp_apcs_pc) %(cpp_float) \
%{mbsd:%{pedantic:%e-mbsd and -pedantic incompatible} -D_BSD_C} \ %{mbsd:%{pedantic:%e-mbsd and -pedantic incompatible} -D_BSD_C} \
%{mxopen:%{mbsd:%e-mbsd and -mxopen incompatible} \ %{mxopen:%{mbsd:%e-mbsd and -mxopen incompatible} \
%{pedantic:%e-mxopen and -pedantic incompatible} -D_XOPEN_C} \ %{pedantic:%e-mxopen and -pedantic incompatible} -D_XOPEN_C} \
......
...@@ -91,10 +91,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -91,10 +91,7 @@ Boston, MA 02111-1307, USA. */
#include "arm/aout.h" #include "arm/aout.h"
#undef CPP_SPEC #define SUBTARGET_CPP_SPEC "%{!ansi: -D_BSD_C}"
#define CPP_SPEC "\
%(cpp_cpu_arch) %(cpp_apcs_pc) %(cpp_float) %{!ansi: -D_BSD_C} \
"
/* The native RISCiX assembler does not support stabs of any kind; because /* The native RISCiX assembler does not support stabs of any kind; because
......
...@@ -22,10 +22,9 @@ the Free Software Foundation, 59 Temple Place - Suite 330, ...@@ -22,10 +22,9 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* Limit the length of a stabs entry (for the broken Acorn assembler) */ /* Limit the length of a stabs entry (for the broken Acorn assembler) */
#undef DBX_CONTIN_LENGTH
#define DBX_CONTIN_LENGTH 80 #define DBX_CONTIN_LENGTH 80
#include "arm/riscix.h"
/* The native RISCiX assembler does not support stabs of any kind; because /* The native RISCiX assembler does not support stabs of any kind; because
the native assembler is not used by the compiler, Acorn didn't feel it was the native assembler is not used by the compiler, Acorn didn't feel it was
necessary to put them in! necessary to put them in!
......
...@@ -69,7 +69,5 @@ Boston, MA 02111-1307, USA. */ ...@@ -69,7 +69,5 @@ Boston, MA 02111-1307, USA. */
%(subtarget_extra_asm_spec)" %(subtarget_extra_asm_spec)"
#endif #endif
#include "arm/aout.h"
#undef CPP_APCS_PC_DEFAULT_SPEC #undef CPP_APCS_PC_DEFAULT_SPEC
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__" #define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
...@@ -35,9 +35,5 @@ Boston, MA 02111-1307, USA. */ ...@@ -35,9 +35,5 @@ Boston, MA 02111-1307, USA. */
/* The Norcroft C library defines size_t as "unsigned int" */ /* The Norcroft C library defines size_t as "unsigned int" */
#define SIZE_TYPE "unsigned int" #define SIZE_TYPE "unsigned int"
#include "arm/aof.h"
#undef CPP_APCS_PC_DEFAULT_SPEC #undef CPP_APCS_PC_DEFAULT_SPEC
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__" #define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
...@@ -24,8 +24,5 @@ Boston, MA 02111-1307, USA. */ ...@@ -24,8 +24,5 @@ Boston, MA 02111-1307, USA. */
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_strongarm #define SUBTARGET_CPU_DEFAULT TARGET_CPU_strongarm
#endif #endif
#include "coff.h"
#undef TARGET_VERSION #undef TARGET_VERSION
#define TARGET_VERSION fputs (" (StrongARM/COFF)", stderr); #define TARGET_VERSION fputs (" (StrongARM/COFF)", stderr);
...@@ -19,8 +19,5 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -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, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include "arm/strongarm-coff.h"
#include "arm/pe.h"
#undef TARGET_VERSION #undef TARGET_VERSION
#define TARGET_VERSION fputs (" (StrongARM/PE)", stderr); #define TARGET_VERSION fputs (" (StrongARM/PE)", stderr);
...@@ -23,8 +23,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -23,8 +23,6 @@ Boston, MA 02111-1307, USA. */
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm710 #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm710
#include "arm/coff.h"
#undef SUBTARGET_CPP_SPEC #undef SUBTARGET_CPP_SPEC
#define SUBTARGET_CPP_SPEC \ #define SUBTARGET_CPP_SPEC \
"%{march=arm710:-DCPU=ARM710A} \ "%{march=arm710:-DCPU=ARM710A} \
......
...@@ -29,7 +29,5 @@ Boston, MA 02111-1307, USA. */ ...@@ -29,7 +29,5 @@ Boston, MA 02111-1307, USA. */
#define MULTILIB_DEFAULTS \ #define MULTILIB_DEFAULTS \
{ "mlittle-endian", "mno-thumb-interwork", "marm" } { "mlittle-endian", "mno-thumb-interwork", "marm" }
#include "coff.h"
#undef TARGET_VERSION #undef TARGET_VERSION
#define TARGET_VERSION fputs (" (XScale/COFF)", stderr); #define TARGET_VERSION fputs (" (XScale/COFF)", stderr);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment