summaryrefslogtreecommitdiff
path: root/gcc/config/arm
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/arm')
-rw-r--r--gcc/config/arm/unknown-elf.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/arm/unknown-elf.h b/gcc/config/arm/unknown-elf.h
index 5fa5d726b10..6402c4e697f 100644
--- a/gcc/config/arm/unknown-elf.h
+++ b/gcc/config/arm/unknown-elf.h
@@ -33,7 +33,9 @@ Boston, MA 02111-1307, USA. */
#define HAVE_ATEXIT
/* Default to using APCS-32 and software floating point. */
+#ifndef TARGET_DEFAULT
#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32)
+#endif
/* Now we define the strings used to build the spec file. */
#define STARTFILE_SPEC "crtbegin%O%s crt0%O%s"
@@ -157,8 +159,13 @@ do { \
DECL_SECTION_NAME (DECL) = build_string (len, string); \
} while (0)
+#ifndef CPP_APCS_PC_DEFAULT_SPEC
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
+#endif
+
+#ifndef SUBTARGET_CPU_DEFAULT
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm7tdmi
-
+#endif
+
/* Now get the routine arm-elf definitions. */
#include "arm/elf.h"