* config/pdp11/pdp11.h (TARGET_HAS_NO_HW_DIVIDE): Define.
authorPaul Koning <ni1d@arrl.net>
Sun, 25 Nov 2018 17:39:27 +0000 (12:39 -0500)
committerPaul Koning <pkoning@gcc.gnu.org>
Sun, 25 Nov 2018 17:39:27 +0000 (12:39 -0500)
From-SVN: r266439

gcc/ChangeLog
gcc/config/pdp11/pdp11.h

index 343ea38..98dc32a 100644 (file)
@@ -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
index 92c237b..e525bba 100644 (file)
@@ -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
 \f
 /* Standard register usage.  */