bpapi-lib.h (TARGET_HAS_NO_HW_DIVIDE): Define for architectures that do not have...
authorKugan Vivekanandarajah <kuganv@linaro.org>
Wed, 4 Dec 2013 11:34:39 +0000 (11:34 +0000)
committerChristophe Lyon <clyon@gcc.gnu.org>
Wed, 4 Dec 2013 11:34:39 +0000 (12:34 +0100)
2013-12-04  Kugan Vivekanandarajah  <kuganv@linaro.org>

* config/arm/bpapi-lib.h (TARGET_HAS_NO_HW_DIVIDE): Define for
architectures that do not have hardware divide instruction.
i.e. architectures that do not define __ARM_ARCH_EXT_IDIV__.

From-SVN: r205666

libgcc/ChangeLog
libgcc/config/arm/bpabi-lib.h

index 94f69ca..83f30df 100644 (file)
@@ -1,3 +1,9 @@
+2013-12-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
+
+       * config/arm/bpapi-lib.h (TARGET_HAS_NO_HW_DIVIDE): Define for
+       architectures that do not have hardware divide instruction.
+       i.e. architectures that do not define __ARM_ARCH_EXT_IDIV__.
+
 2013-12-04  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * longlong.h: Delete (moved to include/).
index e0e46a6..7c6b489 100644 (file)
@@ -75,3 +75,7 @@
    helper functions - not everything in libgcc - in the interests of
    maintaining backward compatibility.  */
 #define LIBGCC2_FIXEDBIT_GNU_PREFIX
+
+#if (!defined(__ARM_ARCH_EXT_IDIV__))
+# define TARGET_HAS_NO_HW_DIVIDE
+#endif