aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-09-03 11:05:58 +0000
committerNick Clifton <nickc@gcc.gnu.org>2003-09-03 11:05:58 +0000
commit877bcd2d340f8fb1052ec2b0fee73602d0c5a0be (patch)
tree5a45488a1298c01d328d9c7f693a33a98f5049c1 /gcc
parentee69241016a9700eb663e5ccfadc3c11468711d7 (diff)
downloadgcc-877bcd2d340f8fb1052ec2b0fee73602d0c5a0be.zip
gcc-877bcd2d340f8fb1052ec2b0fee73602d0c5a0be.tar.gz
gcc-877bcd2d340f8fb1052ec2b0fee73602d0c5a0be.tar.bz2
Handle TARGET_CPU_iwmmxt.
Use #error to generate the message if TARGET_DEFAULT is not recognised. From-SVN: r71021
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/arm/arm.h5
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bbefe0b..8ce3e73 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2003-09-03 Nick Clifton <nickc@redhat.com>
+
+ * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
+ Use #error to generate the message if TARGET_DEFAULT is not
+ recognised.
+
2003-09-03 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.h (MASK_UNUSED1): Remove.
diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h
index dc649cc..f3015b3 100644
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -173,8 +173,11 @@ extern GTY(()) rtx aof_pic_label;
#undef TARGET_DEFAULT
#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME)
#endif /* TARGET_CPU_DEFAULT */
+#if TARGET_CPU_DEFAULT == TARGET_CPU_iwmmxt
+#define CPP_ARCH_DEFAULT_SPEC "-D__ARM_ARCH_5TE__ -D__XSCALE__ -D__IWMMXT__"
#else
-Unrecognized value in TARGET_CPU_DEFAULT.
+#error Unrecognized value in TARGET_CPU_DEFAULT.
+#endif
#endif
#endif
#endif