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.greenha...@arm.com>

        * TARGET_CPU_CPP_BUILTINS: Add __ARM_FEATURE_DSP.
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__");			\

Reply via email to