diff options
author | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-22 05:45:37 +0000 |
---|---|---|
committer | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-22 05:45:37 +0000 |
commit | c2078b806e007cf378451fcecda0d9f9a366fcc0 (patch) | |
tree | 15430a70b98350e546a27451e278ea2bc1aec992 /gcc/ree.c | |
parent | a7920b67d3445222ee084dc2f0552e385027833a (diff) | |
download | gcc-c2078b806e007cf378451fcecda0d9f9a366fcc0.tar.gz |
add auto_vec
2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
gcc/
* vec.h (auto_vec): New class.
* cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
appropriate instead of vec for local variables.
cp/
* parser.c, semantics.c: Change some local variables from vec to
auto_vec or stack_vec.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205244 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ree.c')
-rw-r--r-- | gcc/ree.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/ree.c b/gcc/ree.c index fa05feed749..87427fdb00e 100644 --- a/gcc/ree.c +++ b/gcc/ree.c @@ -862,7 +862,7 @@ find_and_remove_re (void) rtx curr_insn = NULL_RTX; int num_re_opportunities = 0, num_realized = 0, i; vec<ext_cand> reinsn_list; - vec<rtx> reinsn_del_list; + auto_vec<rtx> reinsn_del_list; ext_state state; /* Construct DU chain to get all reaching definitions of each @@ -873,7 +873,6 @@ find_and_remove_re (void) df_set_flags (DF_DEFER_INSN_RESCAN); max_insn_uid = get_max_uid (); - reinsn_del_list.create (0); reinsn_list = find_removable_extensions (); state.defs_list.create (0); state.copies_list.create (0); @@ -910,7 +909,6 @@ find_and_remove_re (void) delete_insn (curr_insn); reinsn_list.release (); - reinsn_del_list.release (); state.defs_list.release (); state.copies_list.release (); state.modified_list.release (); |