From 531e8454388a41f77bc108532e14ea9251bcef6d Mon Sep 17 00:00:00 2001 From: nickc Date: Wed, 3 Sep 2003 11:05:58 +0000 Subject: [PATCH] Handle TARGET_CPU_iwmmxt. Use #error to generate the message if TARGET_DEFAULT is not recognised. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71021 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/arm/arm.h | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bbefe0bcbb1..8ce3e7396bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-09-03 Nick Clifton + + * 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 * config/mips/mips.h (MASK_UNUSED1): Remove. diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index dc649ccfd1d..f3015b3e567 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 -- 2.11.0