summaryrefslogtreecommitdiff
path: root/gcc/cfglayout.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-11 12:31:40 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-11 12:31:40 +0000
commit8b3949ab707ec35a8cb67488d1277297ade57d5d (patch)
tree296c5e6ccfe4c678c2b699ec0b3231ebade31b29 /gcc/cfglayout.c
parent1046ee052f6c540dffa07341eef3bcf6debd27f8 (diff)
downloadgcc-8b3949ab707ec35a8cb67488d1277297ade57d5d.tar.gz
* function.c (free_after_compilation): Call insn_locators_free.
* cfglayout.c (insn_locators_free): New function. * rtl.h (insn_locators_free): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140279 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfglayout.c')
-rw-r--r--gcc/cfglayout.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c
index e4049d66465..b4ca49f4324 100644
--- a/gcc/cfglayout.c
+++ b/gcc/cfglayout.c
@@ -271,6 +271,19 @@ insn_locators_finalize (void)
curr_rtl_loc = -1;
}
+/* Allocate insn locator datastructure. */
+void
+insn_locators_free (void)
+{
+ prologue_locator = epilogue_locator = 0;
+
+ VEC_free (int, heap, block_locators_locs);
+ VEC_free (tree,gc, block_locators_blocks);
+ VEC_free (int, heap, locations_locators_locs);
+ VEC_free (location_t, heap, locations_locators_vals);
+}
+
+
/* Set current location. */
void
set_curr_insn_source_location (location_t location)