OSDN Git Service

2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jul 2011 17:26:15 +0000 (17:26 +0000)
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jul 2011 17:26:15 +0000 (17:26 +0000)
* config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add
__ARM_FEATURE_DSP.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175925 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 38a8bcd..21f550c 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 b0d2625..3810f9e 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__");                     \