Handle TARGET_CPU_iwmmxt.
authorNick Clifton <nickc@redhat.com>
Wed, 3 Sep 2003 11:05:58 +0000 (11:05 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 3 Sep 2003 11:05:58 +0000 (11:05 +0000)
Use #error to generate the message if TARGET_DEFAULT is not recognised.

From-SVN: r71021

gcc/ChangeLog
gcc/config/arm/arm.h

index bbefe0bcbb13e30993a389e7126906d95a29ecd4..8ce3e7396bd26ab7d50b6295f74c2ac93e023ced 100644 (file)
@@ -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.
index dc649ccfd1dec28e0c54f9633de988cb67b2f073..f3015b3e5676ab9530e23eb86482535de6b989b6 100644 (file)
@@ -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