]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[ARC] Use TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P hook.
authorclaziss <claziss@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Dec 2015 09:59:02 +0000 (09:59 +0000)
committerclaziss <claziss@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Dec 2015 09:59:02 +0000 (09:59 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231609 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arc/arc.c

index 6433a1f4cec98869b28d877b5e79dedca42cbffd..6d3210f63c879c7f0d42f9f8095525fe02dfd3c4 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
index 2646c3ac69d093fd43a0dc534da10f4faea4b25f..513d138780d235568b0a2b1552e5c398e1c5ce73 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"