This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 08/11] targhooks - provide an alternative hook for targets that never execute speculatively
On Fri, 27 Jul 2018, Richard Earnshaw wrote:
>
> 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.
OK.
> 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.
> ---
> gcc/doc/tm.texi | 5 +++++
> gcc/target.def | 7 ++++++-
> gcc/targhooks.c | 7 +++++++
> gcc/targhooks.h | 1 +
> 4 files changed, 19 insertions(+), 1 deletion(-)
>
>
--
Richard Biener <rguenther@suse.de>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg)