From bf9e9dc52ee14891676e36e758680bcc35801de4 Mon Sep 17 00:00:00 2001 From: Claudiu Zissulescu Date: Mon, 14 Dec 2015 10:59:02 +0100 Subject: [PATCH] [ARC] Use TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P hook. gcc/ 2015-12-14 Claudiu Zissulescu * config/arc/arc.c (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Provide target hook. (arc_no_speculation_in_delay_slots_p): New function. From-SVN: r231609 --- gcc/ChangeLog | 6 ++++++ gcc/config/arc/arc.c | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6433a1f..6d3210f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,10 @@ 2015-12-14 Claudiu Zissulescu + + * config/arc/arc.c (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): + Provide target hook. + (arc_no_speculation_in_delay_slots_p): New function. + +2015-12-14 Claudiu Zissulescu Andrew Burgess * config/arc/arc.c (frame_move): Set frame related flag. diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 2646c3a..513d138 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -558,6 +558,10 @@ static void arc_finalize_pic (void); #define TARGET_INSN_LENGTH_PARAMETERS arc_insn_length_parameters +#undef TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P +#define TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P \ + arc_no_speculation_in_delay_slots_p + #undef TARGET_LRA_P #define TARGET_LRA_P arc_lra_p #define TARGET_REGISTER_PRIORITY arc_register_priority @@ -10057,6 +10061,14 @@ arc_expand_atomic_op (enum rtx_code code, rtx mem, rtx val, arc_post_atomic_barrier (model); } +/* Implement TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P. */ + +static bool +arc_no_speculation_in_delay_slots_p () +{ + return true; +} + struct gcc_target targetm = TARGET_INITIALIZER; #include "gt-arc.h" -- 2.7.4