]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tablejump_p takes an rtx_insn
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 28 Aug 2014 20:51:33 +0000 (20:51 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 28 Aug 2014 20:51:33 +0000 (20:51 +0000)
gcc/
2014-08-28  David Malcolm  <dmalcolm@redhat.com>

* rtl.h (tablejump_p): Strengthen first param from const_rtx to
const rtx_insn *.
(label_is_jump_target_p): Likewise for second param.

* rtlanal.c (tablejump_p): Likewise for param "insn".
(label_is_jump_target_p): Likewise for param "jump_insn".

From-SVN: r214696

gcc/ChangeLog
gcc/rtl.h
gcc/rtlanal.c

index bd0c89943fb0ca4ea8a46bec76e7c2d6f083a264..5bb3523718983af5ff711e842fd9357bf8e81c91 100644 (file)
@@ -1,3 +1,21 @@
+2014-08-28  David Malcolm  <dmalcolm@redhat.com>
+
+       * rtl.h (tablejump_p): Strengthen first param from const_rtx to
+       const rtx_insn *.
+       (label_is_jump_target_p): Likewise for second param.
+
+       * rtlanal.c (tablejump_p): Likewise for param "insn".
+       (label_is_jump_target_p): Likewise for param "jump_insn".
+
+2014-08-28  David Malcolm  <dmalcolm@redhat.com>
+
+       * rtl.h (find_first_parameter_load): Strengthen return type and
+       both params from rtx to rtx_insn *.
+       * rtlanal.c (find_first_parameter_load): Strengthen return type,
+       both params and locals "before", "first_set" from rtx to
+       rtx_insn *.  Remove now-redundant cast.
+       * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
+
 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
 
        * rtl.h (find_last_value): Delete.
index 45cbe52070caa52f581224ac1d86f6d0456a800f..89431a933cbc6da08a0ac136f89d7826e7634bf1 100644 (file)
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -2795,7 +2795,7 @@ extern rtx replace_rtx (rtx, rtx, rtx);
 extern void replace_label (rtx *, rtx, rtx, bool);
 extern void replace_label_in_insn (rtx_insn *, rtx, rtx, bool);
 extern bool rtx_referenced_p (const_rtx, const_rtx);
-extern bool tablejump_p (const_rtx, rtx *, rtx_jump_table_data **);
+extern bool tablejump_p (const rtx_insn *, rtx *, rtx_jump_table_data **);
 extern int computed_jump_p (const_rtx);
 extern bool tls_referenced_p (const_rtx);
 
@@ -2831,7 +2831,7 @@ extern void remove_node_from_insn_list (const rtx_insn *, rtx_insn_list **);
 extern int loc_mentioned_in_p (rtx *, const_rtx);
 extern rtx_insn *find_first_parameter_load (rtx_insn *, rtx_insn *);
 extern bool keep_with_call_p (const_rtx);
-extern bool label_is_jump_target_p (const_rtx, const_rtx);
+extern bool label_is_jump_target_p (const_rtx, const rtx_insn *);
 extern int insn_rtx_cost (rtx, bool);
 
 /* Given an insn and condition, return a canonical description of
index 76c4bf08c0611c8a4ce2548e0663b939a98e195c..739f1343a1e2ab649f0d509399be06c05469a25d 100644 (file)
@@ -2862,7 +2862,7 @@ rtx_referenced_p (const_rtx x, const_rtx body)
    *LABELP and the jump table to *TABLEP.  LABELP and TABLEP may be NULL.  */
 
 bool
-tablejump_p (const_rtx insn, rtx *labelp, rtx_jump_table_data **tablep)
+tablejump_p (const rtx_insn *insn, rtx *labelp, rtx_jump_table_data **tablep)
 {
   rtx label, table;
 
@@ -3833,7 +3833,7 @@ keep_with_call_p (const_rtx insn)
    not apply to the fallthru case of a conditional jump.  */
 
 bool
-label_is_jump_target_p (const_rtx label, const_rtx jump_insn)
+label_is_jump_target_p (const_rtx label, const rtx_insn *jump_insn)
 {
   rtx tmp = JUMP_LABEL (jump_insn);
   rtx_jump_table_data *table;