aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm
diff options
context:
space:
mode:
authorDavid O'Brien <obrien@FreeBSD.org>2001-11-16 21:23:16 +0000
committerDavid O'Brien <obrien@gcc.gnu.org>2001-11-16 21:23:16 +0000
commitf910b1bb5fb405e648f172c2ba19a894724ecffe (patch)
treed40bbfe2a74b2c9607f050b0a705b1cac7df2e79 /gcc/config/arm
parent9c8e9f62961c74d9ec6545358b4d69c70141cfcf (diff)
downloadgcc-f910b1bb5fb405e648f172c2ba19a894724ecffe.zip
gcc-f910b1bb5fb405e648f172c2ba19a894724ecffe.tar.gz
gcc-f910b1bb5fb405e648f172c2ba19a894724ecffe.tar.bz2
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
Diffstat (limited to 'gcc/config/arm')
-rw-r--r--gcc/config/arm/aof.h2
-rw-r--r--gcc/config/arm/aout.h2
-rw-r--r--gcc/config/arm/coff.h2
-rw-r--r--gcc/config/arm/elf.h2
-rw-r--r--gcc/config/arm/netbsd.h10
-rw-r--r--gcc/config/arm/pe.h2
-rw-r--r--gcc/config/arm/riscix.h8
-rw-r--r--gcc/config/arm/riscix1-1.h5
-rw-r--r--gcc/config/arm/rix-gas.h3
-rw-r--r--gcc/config/arm/semi.h2
-rw-r--r--gcc/config/arm/semiaof.h4
-rw-r--r--gcc/config/arm/strongarm-coff.h3
-rw-r--r--gcc/config/arm/strongarm-pe.h3
-rw-r--r--gcc/config/arm/vxarm.h2
-rw-r--r--gcc/config/arm/xscale-coff.h2
15 files changed, 8 insertions, 44 deletions
diff --git a/gcc/config/arm/aof.h b/gcc/config/arm/aof.h
index d8fb2eb..387788d 100644
--- a/gcc/config/arm/aof.h
+++ b/gcc/config/arm/aof.h
@@ -389,6 +389,4 @@ do { \
fprintf ((STREAM), "\tALIGN %d\n", amount); \
} while (0)
-#include "arm/arm.h"
-
#undef DBX_DEBUGGING_INFO
diff --git a/gcc/config/arm/aout.h b/gcc/config/arm/aout.h
index 88dddc1..9e3c6ea 100644
--- a/gcc/config/arm/aout.h
+++ b/gcc/config/arm/aout.h
@@ -333,5 +333,3 @@ Boston, MA 02111-1307, USA. */
/* This works for GAS and some other assemblers. */
#define SET_ASM_OP "\t.set\t"
-
-#include "arm.h"
diff --git a/gcc/config/arm/coff.h b/gcc/config/arm/coff.h
index 84ab1ed..3936c8c 100644
--- a/gcc/config/arm/coff.h
+++ b/gcc/config/arm/coff.h
@@ -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,
Boston, MA 02111-1307, USA. */
-#include "semi.h"
-#include "aout.h"
/* Note - it is important that this definition matches the one in tcoff.h */
#undef USER_LABEL_PREFIX
diff --git a/gcc/config/arm/elf.h b/gcc/config/arm/elf.h
index e39381d..8b0443b 100644
--- a/gcc/config/arm/elf.h
+++ b/gcc/config/arm/elf.h
@@ -193,5 +193,3 @@ Boston, MA 02111-1307, USA. */
fprintf (STREAM, "\t.align\t%d\n", POWER); \
} \
while (0)
-
-#include "aout.h"
diff --git a/gcc/config/arm/netbsd.h b/gcc/config/arm/netbsd.h
index 057c7cf..554460d 100644
--- a/gcc/config/arm/netbsd.h
+++ b/gcc/config/arm/netbsd.h
@@ -20,9 +20,11 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* Run-time Target Specification. */
+#undef TARGET_VERSION
#define TARGET_VERSION fputs (" (ARM/NetBSD)", stderr);
/* This is used in ASM_FILE_START. */
+#undef ARM_OS_NAME
#define ARM_OS_NAME "NetBSD"
/* Unsigned chars produces much better code than signed. */
@@ -37,15 +39,9 @@ Boston, MA 02111-1307, USA. */
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
/* 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)
-#include "arm/aout.h"
-
-/* This gets redefined in config/netbsd.h. */
-#undef TARGET_MEM_FUNCTIONS
-
-#include <netbsd.h>
-
/* Some defines for CPP.
arm32 is the NetBSD port name, so we always define arm32 and __arm32__. */
#undef CPP_PREDEFINES
diff --git a/gcc/config/arm/pe.h b/gcc/config/arm/pe.h
index 4b9c38a..1182aac 100644
--- a/gcc/config/arm/pe.h
+++ b/gcc/config/arm/pe.h
@@ -29,8 +29,6 @@ Boston, MA 02111-1307, USA. */
#define SUBTARGET_NAME_ENCODING_LENGTHS \
case ARM_PE_FLAG_CHAR: return 3;
-#include "arm/coff.h"
-
#undef USER_LABEL_PREFIX
#define USER_LABEL_PREFIX "_"
diff --git a/gcc/config/arm/riscix.h b/gcc/config/arm/riscix.h
index 9d5ff7e..faa99ba 100644
--- a/gcc/config/arm/riscix.h
+++ b/gcc/config/arm/riscix.h
@@ -127,11 +127,9 @@ Boston, MA 02111-1307, USA. */
/* The RISCiX assembler does not understand .set */
#undef SET_ASM_OP
-/* Override CPP_SPEC, there's no point handling endianness (and probably
- not much point handling apcs_pc), and we want to add the right #defines
- when using the include files. */
-#undef CPP_SPEC
-#define CPP_SPEC "%(cpp_cpu_arch) %(cpp_apcs_pc) %(cpp_float) \
+/* Add to CPP_SPEC, we want to add the right #defines when using the include
+ files. */
+#define SUBTARGET_CPP_SPEC "\
%{mbsd:%{pedantic:%e-mbsd and -pedantic incompatible} -D_BSD_C} \
%{mxopen:%{mbsd:%e-mbsd and -mxopen incompatible} \
%{pedantic:%e-mxopen and -pedantic incompatible} -D_XOPEN_C} \
diff --git a/gcc/config/arm/riscix1-1.h b/gcc/config/arm/riscix1-1.h
index 49680d2..ccaf964 100644
--- a/gcc/config/arm/riscix1-1.h
+++ b/gcc/config/arm/riscix1-1.h
@@ -91,10 +91,7 @@ Boston, MA 02111-1307, USA. */
#include "arm/aout.h"
-#undef CPP_SPEC
-#define CPP_SPEC "\
-%(cpp_cpu_arch) %(cpp_apcs_pc) %(cpp_float) %{!ansi: -D_BSD_C} \
-"
+#define SUBTARGET_CPP_SPEC "%{!ansi: -D_BSD_C}"
/* The native RISCiX assembler does not support stabs of any kind; because
diff --git a/gcc/config/arm/rix-gas.h b/gcc/config/arm/rix-gas.h
index dae16d0..cfb5312 100644
--- a/gcc/config/arm/rix-gas.h
+++ b/gcc/config/arm/rix-gas.h
@@ -22,10 +22,9 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* Limit the length of a stabs entry (for the broken Acorn assembler) */
+#undef DBX_CONTIN_LENGTH
#define DBX_CONTIN_LENGTH 80
-#include "arm/riscix.h"
-
/* 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
necessary to put them in!
diff --git a/gcc/config/arm/semi.h b/gcc/config/arm/semi.h
index dc63ecd..54ea0e8 100644
--- a/gcc/config/arm/semi.h
+++ b/gcc/config/arm/semi.h
@@ -69,7 +69,5 @@ Boston, MA 02111-1307, USA. */
%(subtarget_extra_asm_spec)"
#endif
-#include "arm/aout.h"
-
#undef CPP_APCS_PC_DEFAULT_SPEC
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
diff --git a/gcc/config/arm/semiaof.h b/gcc/config/arm/semiaof.h
index 652287c..242c35a 100644
--- a/gcc/config/arm/semiaof.h
+++ b/gcc/config/arm/semiaof.h
@@ -35,9 +35,5 @@ Boston, MA 02111-1307, USA. */
/* The Norcroft C library defines size_t as "unsigned int" */
#define SIZE_TYPE "unsigned int"
-#include "arm/aof.h"
-
#undef CPP_APCS_PC_DEFAULT_SPEC
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
-
-
diff --git a/gcc/config/arm/strongarm-coff.h b/gcc/config/arm/strongarm-coff.h
index 3961310..4d2f292 100644
--- a/gcc/config/arm/strongarm-coff.h
+++ b/gcc/config/arm/strongarm-coff.h
@@ -24,8 +24,5 @@ Boston, MA 02111-1307, USA. */
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_strongarm
#endif
-#include "coff.h"
-
#undef TARGET_VERSION
#define TARGET_VERSION fputs (" (StrongARM/COFF)", stderr);
-
diff --git a/gcc/config/arm/strongarm-pe.h b/gcc/config/arm/strongarm-pe.h
index 4ee08b0..2938d3e 100644
--- a/gcc/config/arm/strongarm-pe.h
+++ b/gcc/config/arm/strongarm-pe.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 "arm/strongarm-coff.h"
-#include "arm/pe.h"
-
#undef TARGET_VERSION
#define TARGET_VERSION fputs (" (StrongARM/PE)", stderr);
diff --git a/gcc/config/arm/vxarm.h b/gcc/config/arm/vxarm.h
index 78a1b80..7559364 100644
--- a/gcc/config/arm/vxarm.h
+++ b/gcc/config/arm/vxarm.h
@@ -23,8 +23,6 @@ Boston, MA 02111-1307, USA. */
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm710
-#include "arm/coff.h"
-
#undef SUBTARGET_CPP_SPEC
#define SUBTARGET_CPP_SPEC \
"%{march=arm710:-DCPU=ARM710A} \
diff --git a/gcc/config/arm/xscale-coff.h b/gcc/config/arm/xscale-coff.h
index 8ce2e9b..f5f980d 100644
--- a/gcc/config/arm/xscale-coff.h
+++ b/gcc/config/arm/xscale-coff.h
@@ -29,7 +29,5 @@ Boston, MA 02111-1307, USA. */
#define MULTILIB_DEFAULTS \
{ "mlittle-endian", "mno-thumb-interwork", "marm" }
-#include "coff.h"
-
#undef TARGET_VERSION
#define TARGET_VERSION fputs (" (XScale/COFF)", stderr);