targhooks - provide an alternative hook for targets that never execute speculatively
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 31 Jul 2018 17:36:36 +0000 (17:36 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Tue, 31 Jul 2018 17:36:36 +0000 (17:36 +0000)
commitf3debef33629f8e8a95b5ed0cb79296e7a0282df
treef5992c2819cabd23432a44ebf8afd245a075eed1
parentc0111dc43591647ef6d619a1fc222a8e9a06e058
targhooks - provide an alternative hook for targets that never execute speculatively

This hook adds an alternative implementation for the target hook
TARGET_HAVE_SPECULATION_SAFE_VALUE; it can be used by targets that have no
CPU implementations that execute code speculatively.  All that is needed for
such targets now is to add:

 #undef TARGET_HAVE_SPECULATION_SAFE_VALUE
 #define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed.

to where you have your other target hooks and you're done.

gcc:
* targhooks.h (speculation_safe_value_not_needed): New prototype.
* targhooks.c (speculation_safe_value_not_needed): New function.
* target.def (have_speculation_safe_value): Update documentation.
* doc/tm.texi: Regenerated.

From-SVN: r263175
gcc/ChangeLog
gcc/doc/tm.texi
gcc/target.def
gcc/targhooks.c
gcc/targhooks.h