This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/56461] [4.8 Regression] GCC is leaking lots of memory


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56461

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-27 14:01:20 UTC ---
Author: jakub
Date: Wed Feb 27 14:01:08 2013
New Revision: 196313

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196313
Log:
    PR middle-end/56461
    * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
    vector.
    * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
    vec_safe_push, always update *slot.
    (redirect_edge_var_map_clear): Use vec_free.
    (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
    (free_var_map_entry): Use vec_free.
    * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
    FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-cfgcleanup.c
    trunk/gcc/tree-flow.h
    trunk/gcc/tree-ssa.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]