diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-27 12:04:21 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-27 12:04:21 +0000 |
commit | 58287c3f4b74a0bb479c7036117d5804eb6765c4 (patch) | |
tree | c299b554740820453d3def4a8e59007a86edd7c7 /gcc/cfghooks.c | |
parent | db827453ce1b7f76552f8ba9a8d18e65d7bf8de8 (diff) | |
download | gcc-58287c3f4b74a0bb479c7036117d5804eb6765c4.tar.gz |
2012-11-26 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 193836 using svnmerge.py
**broken, gcc/melt/xtramelt-ana-base.melt dont compile**
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@193843 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfghooks.c')
-rw-r--r-- | gcc/cfghooks.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/cfghooks.c b/gcc/cfghooks.c index 39f2f93d9be..dfeff083123 100644 --- a/gcc/cfghooks.c +++ b/gcc/cfghooks.c @@ -814,11 +814,12 @@ make_forwarder_block (basic_block bb, bool (*redirect_edge_p) (edge), if (dom_info_available_p (CDI_DOMINATORS)) { - VEC (basic_block, heap) *doms_to_fix = VEC_alloc (basic_block, heap, 2); - VEC_quick_push (basic_block, doms_to_fix, dummy); - VEC_quick_push (basic_block, doms_to_fix, bb); + vec<basic_block> doms_to_fix; + doms_to_fix.create (2); + doms_to_fix.quick_push (dummy); + doms_to_fix.quick_push (bb); iterate_fix_dominators (CDI_DOMINATORS, doms_to_fix, false); - VEC_free (basic_block, heap, doms_to_fix); + doms_to_fix.release (); } if (current_loops != NULL) @@ -1144,7 +1145,7 @@ bool cfg_hook_duplicate_loop_to_header_edge (struct loop *loop, edge e, unsigned int ndupl, sbitmap wont_exit, edge orig, - VEC (edge, heap) **to_remove, + vec<edge> *to_remove, int flags) { gcc_assert (cfg_hooks->cfg_hook_duplicate_loop_to_header_edge); |