[PATCH] gc-improv merge (7/n): allocator changes

Laurynas Biveinis laurynas.biveinis@gmail.com
Tue May 25 12:09:00 GMT 2010


The main part of gc-improv changes.

- foo * x = ggc_alloc (sizeof (*x));
+ foo * x = ggc_alloc_foo ();

Here is the scope of the changes:

 ada/gcc-interface/ada-tree.h |   26 +++++++++---------
 ada/gcc-interface/decl.c     |    2 -
 ada/gcc-interface/misc.c     |    2 -
 ada/gcc-interface/trans.c    |   12 ++++----
 ada/gcc-interface/utils.c    |   10 ++-----
 alias.c                      |    2 -
 bitmap.c                     |    4 +-
 c-common.c                   |    2 -
 c-decl.c                     |   20 +++++++-------
 c-parser.c                   |    4 +-
 c-pragma.c                   |    6 ++--
 cfg.c                        |   10 +++----
 cfgloop.c                    |    6 ++--
 cfgrtl.c                     |    2 -
 cgraph.c                     |    8 ++---
 config/alpha/alpha.c         |    9 ++----
 config/arm/arm.c             |    2 -
 config/avr/avr.c             |    3 --
 config/bfin/bfin.c           |    6 ----
 config/cris/cris.c           |    2 -
 config/darwin.c              |    2 -
 config/frv/frv.c             |    2 -
 config/i386/i386.c           |    7 ++--
 config/i386/winnt.c          |    4 +-
 config/ia64/ia64.c           |    2 -
 config/iq2000/iq2000.c       |    6 ----
 config/m32c/m32c.c           |    6 ----
 config/mep/mep.c             |    8 +----
 config/mips/mips.c           |    7 ++--
 config/mmix/mmix.c           |    2 -
 config/moxie/moxie.c         |    2 -
 config/pa/pa.c               |    5 +--
 config/rs6000/rs6000.c       |    6 ++--
 config/s390/s390.c           |    2 -
 config/score/score3.c        |    2 -
 config/score/score7.c        |    2 -
 config/sparc/sparc.c         |    2 -
 config/xtensa/xtensa.c       |    2 -
 cp/class.c                   |    5 +--
 cp/cp-objcp-common.c         |    2 -
 cp/cp-tree.h                 |    4 +-
 cp/decl.c                    |    8 ++---
 cp/lex.c                     |   11 ++++---
 cp/name-lookup.c             |   14 ++++-----
 cp/parser.c                  |   16 +++++------
 cp/pt.c                      |   10 +++----
 cp/typeck2.c                 |    2 -
 dbxout.c                     |    2 -
 dwarf2out.c                  |   61 +++++++++++++++++++++++--------------------
 emit-rtl.c                   |    9 ++----
 except.c                     |   10 +++----
 fortran/f95-lang.c           |    3 --
 fortran/trans-decl.c         |    6 ++--
 fortran/trans-types.c        |    8 ++---
 function.c                   |   11 +++----
 gimple-iterator.c            |    4 +-
 gimple.c                     |    9 +++---
 integrate.c                  |    4 +-
 ipa-cp.c                     |    2 -
 ipa-prop.c                   |    8 ++---
 ipa.c                        |   10 ++-----
 ira.c                        |    2 -
 java/class.c                 |    2 -
 java/constants.c             |    9 ++++--
 java/decl.c                  |    4 +-
 java/expr.c                  |    2 -
 java/java-tree.h             |   13 ++++-----
 java/jcf-parse.c             |    9 ++----
 java/jcf-reader.c            |    4 +-
 lambda-code.c                |    2 -
 lambda.h                     |    2 -
 loop-init.c                  |    2 -
 lto-section-in.c             |    6 ----
 lto-streamer-in.c            |   10 +++----
 lto-symtab.c                 |    2 -
 lto/lto.c                    |    7 ++--
 objc/objc-act.c              |   18 +++++-------
 objc/objc-act.h              |    3 +-
 objcp/objcp-decl.h           |    4 +-
 optabs.c                     |    4 +-
 passes.c                     |    2 -
 pretty-print.c               |    6 ++--
 sese.c                       |    2 -
 stringpool.c                 |    8 ++---
 toplev.c                     |    2 -
 tree-cfg.c                   |    2 -
 tree-dfa.c                   |    2 -
 tree-eh.c                    |    2 -
 tree-iterator.c              |    6 ++--
 tree-phinodes.c              |    2 -
 tree-scalar-evolution.c      |    2 -
 tree-ssa-alias.c             |    2 -
 tree-ssa-loop-niter.c        |    2 -
 tree-ssa-operands.c          |    7 ++--
 tree-ssa-structalias.c       |    2 -
 tree-ssa.c                   |    2 -
 tree-ssanames.c              |    2 -
 tree.c                       |   14 ++++-----
 varasm.c                     |   17 +++++------
 varpool.c                    |    4 +-
 100 files changed, 297 insertions(+), 322 deletions(-)

I guess I will have to ask for trunk freeze while doing merge.

Changelog to be written at commit time.

Tested on x86-64/linux and on compile farm architectures. For the
remaining architectures, tested that cross-compiler backend.o builds.

OK for trunk with the rest of the branch?

-- 
Laurynas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gc-improv-7-conversion.patch
Type: application/octet-stream
Size: 97557 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100525/1ae56b26/attachment.obj>


More information about the Gcc-patches mailing list