pdp11 - example of a port not needing a speculation barrier
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 31 Jul 2018 17:36:45 +0000 (17:36 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Tue, 31 Jul 2018 17:36:45 +0000 (17:36 +0000)
This patch is intended as an example of all that is needed if the
target system doesn't support CPUs that have speculative execution.
I've chosen the pdp11 port on the basis that it's old enough that this
is likely to be true for all existing implementations and that there
is also little chance of that changing in future!

* config/pdp11/pdp11.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Redefine
to speculation_safe_value_not_needed.

From-SVN: r263176

gcc/ChangeLog
gcc/config/pdp11/pdp11.c

index f6328f4d8565425d97c2ee9f838cd13326f4683a..d300118cb02623751b46b5a71dbc7e1ac0ce4df2 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
+
+       * config/pdp11/pdp11.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Redefine
+       to speculation_safe_value_not_needed.
+
 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
 
        * targhooks.h (speculation_safe_value_not_needed): New prototype.
index 1bcdaed79dc9b8a89bae75e8ce9c3bc1fdd89e81..62c653fd8a114256dba7f5bae64a9c4a002e65ac 100644 (file)
@@ -291,6 +291,9 @@ static bool pdp11_scalar_mode_supported_p (scalar_mode);
 
 #undef TARGET_INVALID_WITHIN_DOLOOP
 #define TARGET_INVALID_WITHIN_DOLOOP hook_constcharptr_const_rtx_insn_null
+
+#undef TARGET_HAVE_SPECULATION_SAFE_VALUE
+#define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed
 \f
 /* A helper function to determine if REGNO should be saved in the
    current function's stack frame.  */