This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch ARM] Add predefine for availability of DSP multiplication functions.
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: James Greenhalgh <james dot greenhalgh at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 28 Jun 2011 10:55:01 +0100
- Subject: Re: [Patch ARM] Add predefine for availability of DSP multiplication functions.
- References: <000001cc3246$1c21d2e0$546578a0$@greenhalgh@arm.com>
On 24/06/11 09:09, James Greenhalgh wrote:
> Hi,
>
> This patch adds a builtin macro __ARM_FEATURE_DSP which is defined
> when the ARMv5E DSP multiplication extensions are available for use.
>
> Thanks,
> James Greenhalgh
>
> 2011-06-22 James Greenhalgh <james.greenhalgh@arm.com>
>
> * TARGET_CPU_CPP_BUILTINS: Add __ARM_FEATURE_DSP.
>
>
> 0001-Patch-ARM-Add-predefine-for-availability-of-DSP-mult.patch
>
>
> diff --git gcc/config/arm/arm.h gcc/config/arm/arm.h
> index c32ef1a..892065b 100644
> --- gcc/config/arm/arm.h
> +++ gcc/config/arm/arm.h
> @@ -45,6 +45,8 @@ extern char arm_arch_name[];
> #define TARGET_CPU_CPP_BUILTINS() \
> do \
> { \
> + if (TARGET_DSP_MULTIPLY) \
> + builtin_define ("__ARM_FEATURE_DSP"); \
> /* Define __arm__ even when in thumb mode, for \
> consistency with armcc. */ \
> builtin_define ("__arm__"); \
OK.
R.