Commit 0d53e74e by Trevor Saunders Committed by Trevor Saunders

change in_expr_list_p to in_insn_list_p

gcc/ChangeLog:

2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
	* cfgrtl.c (can_delete_label_p): Adjust.
	* rtl.h: likewise.

From-SVN: r222938
parent ecb44bc9
2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
* cfgrtl.c (can_delete_label_p): Adjust.
* rtl.h: likewise.
2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* reorg.c (stop_search_p): Change argument to rtx_insn *. * reorg.c (stop_search_p): Change argument to rtx_insn *.
2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
......
...@@ -145,7 +145,7 @@ can_delete_label_p (const rtx_code_label *label) ...@@ -145,7 +145,7 @@ can_delete_label_p (const rtx_code_label *label)
return (!LABEL_PRESERVE_P (label) return (!LABEL_PRESERVE_P (label)
/* User declared labels must be preserved. */ /* User declared labels must be preserved. */
&& LABEL_NAME (label) == 0 && LABEL_NAME (label) == 0
&& !in_expr_list_p (forced_labels, label)); && !in_insn_list_p (forced_labels, label));
} }
/* Delete INSN by patching it out. */ /* Delete INSN by patching it out. */
......
...@@ -2922,7 +2922,7 @@ extern unsigned hash_rtx_cb (const_rtx, machine_mode, int *, int *, ...@@ -2922,7 +2922,7 @@ extern unsigned hash_rtx_cb (const_rtx, machine_mode, int *, int *,
extern rtx regno_use_in (unsigned int, rtx); extern rtx regno_use_in (unsigned int, rtx);
extern int auto_inc_p (const_rtx); extern int auto_inc_p (const_rtx);
extern int in_expr_list_p (const_rtx, const_rtx); extern bool in_insn_list_p (const rtx_insn_list *, const rtx_insn *);
extern void remove_node_from_expr_list (const_rtx, rtx_expr_list **); extern void remove_node_from_expr_list (const_rtx, rtx_expr_list **);
extern void remove_node_from_insn_list (const rtx_insn *, rtx_insn_list **); extern void remove_node_from_insn_list (const rtx_insn *, rtx_insn_list **);
extern int loc_mentioned_in_p (rtx *, const_rtx); extern int loc_mentioned_in_p (rtx *, const_rtx);
......
...@@ -2205,16 +2205,16 @@ remove_reg_equal_equiv_notes_for_regno (unsigned int regno) ...@@ -2205,16 +2205,16 @@ remove_reg_equal_equiv_notes_for_regno (unsigned int regno)
return 1 if it is found. A simple equality test is used to determine if return 1 if it is found. A simple equality test is used to determine if
NODE matches. */ NODE matches. */
int bool
in_expr_list_p (const_rtx listp, const_rtx node) in_insn_list_p (const rtx_insn_list *listp, const rtx_insn *node)
{ {
const_rtx x; const_rtx x;
for (x = listp; x; x = XEXP (x, 1)) for (x = listp; x; x = XEXP (x, 1))
if (node == XEXP (x, 0)) if (node == XEXP (x, 0))
return 1; return true;
return 0; return false;
} }
/* Search LISTP (an EXPR_LIST) for an entry whose first operand is NODE and /* Search LISTP (an EXPR_LIST) for an entry whose first operand is NODE and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment