summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-04 11:34:39 +0000
committerclyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-04 11:34:39 +0000
commit706d62f52c63482bae1256ba8f3c7bcb9f55cf62 (patch)
treef8eb718ce830ccf3ca27263a2a796d4117e9367b
parent8d10ebeab64e88e8b706d860f8926efd0742ab50 (diff)
downloadgcc-706d62f52c63482bae1256ba8f3c7bcb9f55cf62.tar.gz
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__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205666 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libgcc/ChangeLog6
-rw-r--r--libgcc/config/arm/bpabi-lib.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 94f69caaaf5..83f30dfd7a2 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -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/).
diff --git a/libgcc/config/arm/bpabi-lib.h b/libgcc/config/arm/bpabi-lib.h
index e0e46a6583c..7c6b489bd0d 100644
--- a/libgcc/config/arm/bpabi-lib.h
+++ b/libgcc/config/arm/bpabi-lib.h
@@ -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