aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Koning <ni1d@arrl.net>2018-11-25 12:39:27 -0500
committerPaul Koning <pkoning@gcc.gnu.org>2018-11-25 12:39:27 -0500
commit537db3a2bc0a0225d2d19d8123f09dd38d20e55e (patch)
tree29bf32686b49f4717640d56cd7bb7b322d18eda4
parent6d9434e5954ef5a450a8bd3fd3c3961545bc1d9c (diff)
downloadgcc-537db3a2bc0a0225d2d19d8123f09dd38d20e55e.zip
gcc-537db3a2bc0a0225d2d19d8123f09dd38d20e55e.tar.gz
gcc-537db3a2bc0a0225d2d19d8123f09dd38d20e55e.tar.bz2
* config/pdp11/pdp11.h (TARGET_HAS_NO_HW_DIVIDE): Define.
From-SVN: r266439
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/pdp11/pdp11.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 343ea38..98dc32a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2018-11-25 Paul Koning <ni1d@arrl.net>
+
+ * config/pdp11/pdp11.h (TARGET_HAS_NO_HW_DIVIDE): Define.
+
2018-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* doc/sourcebuild.texi (Effective-Target Keywords, Environment
diff --git a/gcc/config/pdp11/pdp11.h b/gcc/config/pdp11/pdp11.h
index 92c237b..e525bba 100644
--- a/gcc/config/pdp11/pdp11.h
+++ b/gcc/config/pdp11/pdp11.h
@@ -143,6 +143,11 @@ extern const struct real_format pdp11_d_format;
/* Define this if move instructions will actually fail to work
when given unaligned data. */
#define STRICT_ALIGNMENT 1
+
+/* "HW_DIVIDE" actually means 64 by 32 bit divide. While some PDP11
+ models have hardware divide, it is for 32 by 16 bits only, so we
+ call this platform "no hardware divide". */
+#define TARGET_HAS_NO_HW_DIVIDE 1
/* Standard register usage. */