aboutsummaryrefslogtreecommitdiff
path: root/gcc/lists.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lists.c')
-rw-r--r--gcc/lists.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/lists.c b/gcc/lists.c
index 70f2ee8..c9df54a 100644
--- a/gcc/lists.c
+++ b/gcc/lists.c
@@ -98,7 +98,7 @@ remove_list_node (rtx *listp)
/* Removes corresponding to ELEM node from the list pointed to by LISTP.
Returns that node. */
-static rtx
+rtx
remove_list_elem (rtx elem, rtx *listp)
{
rtx node;
@@ -241,4 +241,12 @@ remove_free_DEPS_LIST_elem (rtx elem, rtx *listp)
free_DEPS_LIST_node (remove_list_elem (elem, listp));
}
+/* Remove and free corresponding to ELEM node in the INSN_LIST pointed to
+ by LISTP. */
+void
+remove_free_INSN_LIST_elem (rtx elem, rtx *listp)
+{
+ free_INSN_LIST_node (remove_list_elem (elem, listp));
+}
+
#include "gt-lists.h"