[ARC] Use TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P hook.
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 14 Dec 2015 09:59:02 +0000 (10:59 +0100)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Mon, 14 Dec 2015 09:59:02 +0000 (10:59 +0100)
gcc/
2015-12-14  Claudiu Zissulescu  <claziss@synopsys.com>

* 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
gcc/config/arc/arc.c

index 6433a1f..6d3210f 100644 (file)
@@ -1,4 +1,10 @@
 2015-12-14  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * 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  <claziss@synopsys.com>
            Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * config/arc/arc.c (frame_move): Set frame related flag.
index 2646c3a..513d138 100644 (file)
@@ -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"