arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
authorJames Greenhalgh <james.greenhalgh@arm.com>
Wed, 6 Jul 2011 17:26:15 +0000 (17:26 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Wed, 6 Jul 2011 17:26:15 +0000 (17:26 +0000)
2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>

* config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add
__ARM_FEATURE_DSP.

From-SVN: r175925

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

index 38a8bcd49361c2be164dfb949ec5fbe26b22640a..21f550c6d99cd344f891fad6bae57055330cf1f3 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
+
+       * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add
+       __ARM_FEATURE_DSP.
+
 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
 
        * configure.ac (plugin-version.h): Generate
index b0d26259a08752187b0d0165c7dbf894f9556bf8..3810f9e8f61d22d5b020a799c37ab762c37f0b56 100644 (file)
@@ -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__");                     \