This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[csl-arm] Eabi target defaults
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 30 Apr 2005 20:34:03 +0100
- Subject: [csl-arm] Eabi target defaults
The attached patch enables interworking by default for EABI based targets, and
changes the default CPU used for arm-linux-gnueabi.
Tested with cross to arm-none-eabi.
Applied to csl-arm-branch.
Paul
2005-04-30 Paul Brook <paul@codesourcery.com>
* config/arm/bpabi.h (TARGET_DEFAULT): Define.
* config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
Index: gcc/config/arm/bpabi.h
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/config/arm/bpabi.h,v
retrieving revision 1.1.4.12
diff -u -p -r1.1.4.12 bpabi.h
--- gcc/config/arm/bpabi.h 30 Apr 2005 16:57:04 -0000 1.1.4.12
+++ gcc/config/arm/bpabi.h 30 Apr 2005 18:20:02 -0000
@@ -33,6 +33,10 @@
#undef FPUTYPE_DEFAULT
#define FPUTYPE_DEFAULT (FPUTYPE_VFP)
+/* EABI targets should enable interworking by default. */
+#undef TARGET_DEFAULT
+#define TARGET_DEFAULT (ARM_FLAG_INTERWORK)
+
/* The ARM BPABI functions return a boolean; they use no special
calling convention. */
#define FLOAT_LIB_COMPARE_RETURNS_BOOL(MODE, COMPARISON) TARGET_BPABI
Index: gcc/config/arm/linux-eabi.h
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/config/arm/Attic/linux-eabi.h,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 linux-eabi.h
--- gcc/config/arm/linux-eabi.h 7 Mar 2005 14:19:05 -0000 1.1.2.4
+++ gcc/config/arm/linux-eabi.h 30 Apr 2005 01:57:49 -0000
@@ -41,6 +41,12 @@
#undef ARM_DEFAULT_ABI
#define ARM_DEFAULT_ABI ARM_ABI_AAPCS_LINUX
+/* Default to armv5t so that thumb shared libraries work.
+ The ARM10TDMI core is the default for armv5t, so set
+ SUBTARGET_CPU_DEFAULT to achieve this. */
+#undef SUBTARGET_CPU_DEFAULT
+#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
+
#undef SUBTARGET_EXTRA_LINK_SPEC
#define SUBTARGET_EXTRA_LINK_SPEC "-m armelf_linux_eabi"