Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/arm If hardware divide is ...



details:   https://anonhg.NetBSD.org/src/rev/9f7deacc8489
branches:  trunk
changeset: 789377:9f7deacc8489
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Aug 17 05:42:06 2013 +0000

description:
If hardware divide is supported on the CPU, predefine __ARM_ARCH_EXT_IDIV__

diffstat:

 external/gpl3/gcc/dist/gcc/config/arm/arm.h |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r bd84c9884b3c -r 9f7deacc8489 external/gpl3/gcc/dist/gcc/config/arm/arm.h
--- a/external/gpl3/gcc/dist/gcc/config/arm/arm.h       Sat Aug 17 01:08:35 2013 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/arm/arm.h       Sat Aug 17 05:42:06 2013 +0000
@@ -100,6 +100,8 @@
            if (TARGET_HARD_FLOAT && TARGET_VFP)        \
              builtin_define ("__ARM_PCS_VFP");         \
          }                                             \
+       if (TARGET_IDIV)                                \
+         builtin_define ("__ARM_ARCH_EXT_IDIV__");     \
     } while (0)
 
 /* The various ARM cores.  */
@@ -269,6 +271,8 @@
    for Thumb-2.  */
 #define TARGET_UNIFIED_ASM TARGET_THUMB2
 
+/* Nonzero if integer division instructions supported.  */
+#define TARGET_IDIV (arm_arch_hwdiv)
 
 /* True iff the full BPABI is being used.  If TARGET_BPABI is true,
    then TARGET_AAPCS_BASED must be true -- but the converse does not



Home | Main Index | Thread Index | Old Index