[PATCH 0/9] remove some manual memory management

tbsaunde+gcc@tbsaunde.org tbsaunde+gcc@tbsaunde.org
Wed Jun 29 12:19:00 GMT 2016


From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

Hi,

This is just a bunch of adding constructors and destructors and switching to
use auto_vec more.

patches individually bootstrapped and regtested on x86_64-linux-gnu, ok?

Trev

Trevor Saunders (9):
  tree.c: add [cd]tors to free_lang_data_d
  c-decl.c: add [cd]tors to c_struct_parse_info
  genextract.c: add [cd]tors to accum_extract
  ipa.c: remove static_{ctors,dtors} globals
  cfgexpand.c: use auto_vec in stack_vars_data
  ree.c: use auto_vec in ext_state
  tree-ssa-sccvn.c: use auto_vec for sccvn_dom_walker::cond_stack
  use auto_vec for more local variables
  remove unnecessary calls to vec::release

 gcc/c/c-decl.c            | 16 +++++-----------
 gcc/c/c-parser.c          | 22 ++++++----------------
 gcc/cfgexpand.c           | 12 +++---------
 gcc/genextract.c          | 23 +++++++----------------
 gcc/genmatch.c            | 12 ++++--------
 gcc/haifa-sched.c         | 15 ++++-----------
 gcc/ipa.c                 | 37 +++++++++++++++++--------------------
 gcc/predict.c             |  4 +---
 gcc/ree.c                 | 19 ++++++-------------
 gcc/tree-data-ref.c       |  8 ++------
 gcc/tree-diagnostic.c     |  4 +---
 gcc/tree-ssa-alias.c      | 21 +++++++--------------
 gcc/tree-ssa-loop-niter.c |  6 ++----
 gcc/tree-ssa-sccvn.c      | 26 ++++++--------------------
 gcc/tree-stdarg.c         |  3 +--
 gcc/tree-vect-stmts.c     | 11 ++---------
 gcc/tree.c                | 33 ++++++++++++---------------------
 17 files changed, 86 insertions(+), 186 deletions(-)

-- 
2.7.4



More information about the Gcc-patches mailing list