aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-27 20:35:53 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-27 20:35:53 +0000
commit2382940b419263c416f86cbf50cfcf5f18c22bdb (patch)
tree4ea4229327cb3a4dd3e2e59aac6110c2f460ebd5 /gcc/rtlanal.c
parentca486330c49fe55964c6d11f1463d70365bdef6b (diff)
downloadgcc-2382940b419263c416f86cbf50cfcf5f18c22bdb.zip
gcc-2382940b419263c416f86cbf50cfcf5f18c22bdb.tar.gz
gcc-2382940b419263c416f86cbf50cfcf5f18c22bdb.tar.bz2
rtl_data.x_nonlocal_goto_handler_labels becomes an rtx_expr_list
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * function.h (struct rtl_data): Strengthen field x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *. * rtl.h (remove_node_from_expr_list): Strengthen second param from rtx * to rtx_expr_list **. * cfgbuild.c (make_edges): In loop over nonlocal_goto_handler_labels, strengthen local "x" from rtx to rtx_expr_list *, and use methods of the latter class to clarify the code. * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to rtx_expr_list *, and use methods of the latter class to clarify the code. * dwarf2cfi.c (create_trace_edges): Likewise for local "lab". * reload1.c (set_initial_label_offsets): Likewise for local "x". * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp" from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx to rtx_expr_list *. Use methods of the latter class to clarify the code. From-SVN: r214603
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index 03ee94a..297ca41 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -2134,26 +2134,26 @@ in_expr_list_p (const_rtx listp, const_rtx node)
A simple equality test is used to determine if NODE matches. */
void
-remove_node_from_expr_list (const_rtx node, rtx *listp)
+remove_node_from_expr_list (const_rtx node, rtx_expr_list **listp)
{
- rtx temp = *listp;
+ rtx_expr_list *temp = *listp;
rtx prev = NULL_RTX;
while (temp)
{
- if (node == XEXP (temp, 0))
+ if (node == temp->element ())
{
/* Splice the node out of the list. */
if (prev)
- XEXP (prev, 1) = XEXP (temp, 1);
+ XEXP (prev, 1) = temp->next ();
else
- *listp = XEXP (temp, 1);
+ *listp = temp->next ();
return;
}
prev = temp;
- temp = XEXP (temp, 1);
+ temp = temp->next ();
}
}