1. 09 Jan, 2015 1 commit
    • genattrtab.c (write_header): Include hash-set.h... · 40e23961
      2015-01-09  Michael Collison  <michael.collison@linaro.org>
      	
      	* genattrtab.c (write_header): Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h when generating
      	insn-attrtab.c.
      	* genautomata.c (main) : Include hash-set.h, macInclude hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h when generating
      	insn-automata.c.
      	* genemit.c (main): Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h when generating
      	insn-emit.c.
      	* gengtype.c (open_base_files): Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h when generating
      	gtype-desc.c.
      	* genopinit.c (main): Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h when generating
      	insn-opinit.c.
      	* genoutput.c (output_prologue): Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h when generating
      	insn-output.c.
      	* genpeep.c (main): Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h when generating
      	insn-peep.c.
      	* genpreds.c (write_insn_preds_c): Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h when generating
      	insn-preds.c.
      	* optc-save-gen-awk: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h when generating
      	options-save.c.
      	* opth-gen.awk: Change include guard from GCC_C_COMMON_H to GCC_C_COMMON_C
      	when generating options.h.
      	* ada/gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h,
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* ada/gcc-interface/decl.c: ditto.
      	* ada/gcc-interface/misc.c: ditto.
      	* ada/gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* ada/gcc-interface/trans.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
      	fold-const.h, wide-int.h, inchash.h due to
      	flattening of tree.h.
      	* ada/gcc-interface/utils.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h,
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* ada/gcc-interface/utils2.c: ditto.
      	* alias.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* asan.c: ditto.
      	* attribs.c: ditto.
      	* auto-inc-dec.c: ditto.
      	* auto-profile.c: ditto
      	* bb-reorder.c: ditto.
      	* bt-load.c: Include symtab.h due to flattening of tree.h.
      	* builtins.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* c/c-array-notation.c: ditto.
      	* c/c-aux-info.c: ditto.
      	* c/c-convert.c: ditto.
      	* c/c-decl.c: ditto.
      	* c/c-errors.c: ditto.
      	* c/c-lang.c: dittoxs.
      	* c/c-objc-common.c: ditto.
      	* c/c-parser.c: ditto.
      	* c/c-typeck.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, inchash.h, real.h and
      	fixed-value.h due to flattening of tree.h.
      	* calls.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* ccmp.c: ditto.
      	* c-family/array-notation-common.c: ditto.
      	* c-family/c-ada-spec.c: ditto.
      	* c-family/c-cilkplus.c: ditto.
      	* c-family/c-common.c: Include input.h due to flattening of tree.h.
      	Define macro GCC_C_COMMON_C.
      	* c-family/c-common.h: Flatten tree.h header files into c-common.h.
      	Remove include of tree-core.h.
      	* c-family/c-cppbuiltin.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* c-family/c-dump.c: ditto.
      	* c-family/c-format.c: Flatten tree.h header files into c-common.h.
      	* c-family/c-cppbuiltin.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* c-family/c-dump.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* c-family/c-format.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, inchash.h and real.h due to
      	flattening of tree.h.
      	* c-family/c-gimplify.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* c-family/cilk.c: ditto.
      	* c-family/c-lex.c: ditto.
      	* c-family/c-omp.c: ditto.
      	* c-family/c-opts.c: ditto.
      	* c-family/c-pch.c: ditto.
      	* c-family/c-ppoutput.c: ditto.
      	* c-family/c-pragma.c: ditto.
      	* c-family/c-pretty-print.c: ditto.
      	* c-family/c-semantics.c: ditto.
      	* c-family/c-ubsan.c: ditto.
      	* c-family/stub-objc.c: ditto.
      	* cfgbuild.c: ditto.
      	* cfg.c: ditto.
      	* cfgcleanup.c: ditto.
      	* cfgexpand.c: ditto.
      	* cfghooks.c: ditto.
      	* cfgloop.c: Include symtab.h, fold-const.h, and
      	inchash.h due to flattening of tree.h.
      	* cfgloopmanip.c: ditto.
      	* cfgrtl.c:  Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* cgraphbuild.c: ditto.
      	* cgraph.c: ditto.
      	* cgraphclones.c: ditto.
      	* cgraphunit.c: ditto.
      	* cilk-common.c: ditto.
      	* combine.c: ditto.
      	* combine-stack-adj.c: Include symbol.h due to flattening of tree.h.
      	* config/aarch64/aarch64-builtins.c:  Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* config/aarch64/aarch64.c: ditto.
      	* config/alpha/alpha.c: ditto.
      	* config/arc/arc.c: ditto.
      	* config/arm/aarch-common.c: ditto.
      	* config/arm/arm-builtins.c: ditto.
      	* config/arm/arm.c: ditto.
      	* config/arm/arm-c.c: ditto.
      	* config/avr/avr.c: ditto.
      	* config/avr/avr-c.c: ditto.
      	* config/avr/avr-log.c: ditto.
      	* config/bfin/bfin.c: ditto.
      	* config/c6x/c6x.c: ditto.
      	* config/cr16/cr16.c: ditto.
      	* config/cris/cris.c: ditto.
      	* config/darwin.c: ditto.
      	* config/darwin-c.c: ditto.
      	* config/default-c.c: ditto.
      	* config/epiphany/epiphany.c: ditto.
      	* config/fr30/fr30.c: ditto.
      	* config/frv/frv.c: ditto.
      	* config/glibc-c.c: ditto.
      	* config/h8300/h8300.c: ditto.
      	* config/i386/i386.c: ditto.
      	* config/i386/i386-c.c: ditto.
      	* config/i386/msformat.c: ditto.
      	* config/i386/winnt.c: ditto.
      	* config/i386/winnt-cxx.c: ditto.
      	* config/i386/winnt-stubs.c: ditto.
      	* config/ia64/ia64.c: ditto.
      	* config/ia64/ia64-c.c: ditto.
      	* config/iq2000/iq2000.c: ditto.
      	* config/lm32/lm32.c: Include symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* config/m32c/m32c.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* config/m32c/m32c-pragma.c: ditto.
      	* config/m32c/m32cr.c: ditto.
      	* config/m68/m68k.c: ditto.
      	* config/mcore/mcore.c: ditto.
      	* config/mep/mep.c: ditto.
      	* config/mep/mep-pragma.c: ditto.
      	* config/microblaze/microblaze.c: ditto.
      	* config/microblaze/microblaze-c.c: ditto.
      	* config/mips/mips.c: ditto.
      	* config/mmix/mmix.c: Include symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* config/mn10300/mn10300.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* config/moxie/moxie.c: ditto.
      	* config/msp430/msp430.c: ditto.
      	* config/msp430/msp430-c.c: ditto.
      	* config/nds32/nds32.c: ditto.
      	* config/nds32/nds32-cost.c: ditto.
      	* config/nds32/nds32-fp-as-gp.c: ditto.
      	* config/nds32/nds32-intrinsic.c: ditto.
      	* config/nds32/nds32-isr.c: ditto.
      	* config/nds32/nds32-md-auxillary.c: ditto.
      	* config/nds32/nds32-memory-manipulationx.c: ditto.
      	* config/nds32/nds32-pipelines-auxillary.c: ditto.
      	* config/nds32/nds32-predicates.c: ditto.
      	* config/nios2/nios2.c: ditto.
      	* config/nvptx/nvptx.c: ditto.
      	* config/pa/pa.c: ditto.
      	* config/pdp11/pdp11x.c: Include symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* config/rl78/rl78.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* config/rl78/rl78-cx.c: ditto.
      	* config/rs6000/rs6000.c: ditto.
      	* config/rs6000/rs6000-c.c: ditto.
      	* config/rx/rx.c: ditto.
      	* config/s390/s390.c: ditto.
      	* config/sh/sh.c: ditto.
      	* config/sh/sc.c: ditto.
      	* config/sh/sh-mem.cc: ditto.
      	* config/sh/sh_treg_combine.cc: Include symtab.h, inchash.h and tree.h
      	due to flattening of tree.h.
      	Remove include of tree-core.h.
      	* config/sol2.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* config/sol2-c.c: ditto.
      	* config/sol2-cxx.c: ditto.
      	* config/sol2-stubs.c: ditto.
      	* config/sparc/sparc.c: ditto.
      	* config/sparc/sparc-cx.c: ditto.
      	* config/spu/spu.c: ditto.
      	* config/spu/spu-c.c: ditto
      	* config/storym16/stormy16.c: ditto.
      	* config/tilegx/tilegx.c: Include symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* config/tilepro/gen-mul-tables.cc: Include symtab.h in generated file.
      	* config/tilegx/tilegx-c.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* config/tilepro/tilepro.c: Include symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* config/tilepro/tilepro-c.c: Include hash-set.h, machmode.h,
      	vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
      	fold-const.h, wide-int.h, and inchash.h due to
      	flattening of tree.h.
      	* config/v850/v850.c: ditto.
      	* config/v850/v850-c.c: ditto.
      	* config/vax/vax.c: ditto.
      	* config/vms/vms.c: ditto.
      	* config/vms/vms-c.c: ditto.
      	* config/vxworks.c: ditto.
      	* config/winnt-c.c: ditto.
      	* config/xtensa/xtensa.c: Include symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* convert.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* coverage.c: ditto.
      	* cp/call.c: ditto.
      	* cp/class.c: ditto.
      	* cp/constexpr.c: ditto.
      	* cp/cp-array-notation.c: ditto.
      	* cp/cp-gimplify.c: ditto.
      	* cp/cp-lang.c: ditto.
      	* cp/cp-objcp-common.c: ditto.
      	* cp/cvt.c: ditto.
      	* cp/decl2.c: ditto.
      	* cp/decl.c: ditto.
      	* cp/dump.c: ditto.
      	* cp/error.c: ditto.
      	* cp/except.c: ditto.
      	* cp/expr.c: ditto.
      	* cp/friend.c: ditto.
      	* cp/init.c: ditto.
      	* cp/lambda.c: ditto.
      	* cp/lex.c: ditto.
      	* cp/mangle.c: ditto.
      	* cp/name-lookup.c: ditto.
      	* cp/optimize.c: ditto.
      	* cp/parser.c: ditto.
      	* cp/pt.c: ditto.
      	* cp/ptree.c: ditto.
      	* cp/repo.c: ditto.
      	* cp/rtti.c: ditto.
      	* cp/search.c: ditto.
      	* cp/semantics.c: ditto.
      	* cp/tree.c: ditto.
      	* cp/typeck2.c: ditto.
      	* cp/typeck.c: ditto.
      	* cppbuiltin.c: ditto.
      	* cprop.c: ditto.
      	* cse.c: Add include of symtab.h due to flattening of tree.h.
      	* cselib.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* data-streamer.c: ditto.
      	* data-streamer-in.c: ditto.
      	* data-streamer-out.c: ditto.
      	* dbxout.c: ditto.
      	* dce.c: ditto.
      	* ddg.c: Add include of symtab.h due to flattening of tree.h.
      	* debug.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* dfp.c: ditto.
      	* df-scan.c: ditto.
      	* dojump.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, inchash.h and real.h due to flattening of tree.h.
      	* double-int.c: ditto.
      	* dse.c: ditto.
      	* dumpfile.c: ditto.
      	* dwarf2asm.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, inchash.h and real.h due to flattening of tree.h.
      	* dwarf2cfi.c: ditto.
      	* dwarf2out.c: ditto.
      	* emit-rtl.c: ditto.
      	* except.c: ditto.
      	* explow.c: ditto.
      	* expmed.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* expr.c: ditto.
      	* final.c: ditto.
      	* fixed-value.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, inchash.h and fixed-value.h due to flattening of tree.h.
      	* fold-const.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	Relocate inline function convert_to_ptrofftype_loc from tree.h.
      	Relocate inline function fold_build_pointer_plus_loc from tree.h.
      	Relocate inline function fold_build_pointer_plus_hwi_loc from tree.h.
      	* fold-const.h: Relocate macro convert_to_ptrofftype from tree.h.
      	Relocate macro fold_build_pointer_plus to relocate from tree.h.h.
      	Relocate macro fold_build_pointer_plus_hwi from tree.h.
      	Add prototype for convert_to_ptrofftype_loc relocated from tree.h.
      	Add prototype for fold_build_pointer_plus_loc relocated from tree.h.
      	Add prototype for fold_build_pointer_plus_hwi_loc relocated from tree.h.
      	* fortran/convert.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* fortran/cpp.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* fortran/decl.c: ditto.
      	* fortran/f95.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* fortran/iresolve.c: ditto.
      	* fortran/match.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* fortran/module.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* fortran/options.c: ditto.
      	* fortran/target-memory.c: Include hash-set.h, vec.h,
      	double-int.h, input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* fortran/trans-array.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* fortran/trans.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* fortran/trans-common.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* fortran/trans-const.c: ditto.
      	* fortran/trans-decl.c: ditto.
      	* fortran/trans-expr.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* fortran/trans-intrinsic.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, inchash.h and real.h due to flattening of tree.h.
      	* fortran/trans-io.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* fortran/trans-openmp.c: ditto.
      	* fortran/trans-stmt.c: ditto.
      	* fortran/trans-types.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, inchash.h and real.h due to flattening of tree.h.
      	* function.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* gcc-plugin.h: Include statistics.h, double-int.h, real.h, fixed-value.h,
      	alias.h, flags.h, and symtab.h due to flattening of tree.h
      	* gcse.c: ditto.
      	* generic-match-head.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* ggc-page.c:  Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* gimple-builder.c: ditto.
      	* gimple.c: ditto.
      	* gimple-expr.c: ditto.
      	* gimple-fold.c: ditto.
      	* gimple-iterator.c: ditto.
      	* gimple-low.c: ditto.
      	* gimple-match-head.c: ditto.
      	* gimple-pretty-print.c: ditto.
      	* generic-ssa-isolate-paths.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* gimple-ssa-strength-reduction.c: ditto.
      	* gimple-streamer-in.c: ditto.
      	* gimple-streamer-out.c: ditto.
      	* gimple-walk.c:  Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* gimplify.c:  Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* gimplify-me.c: ditto.
      	* go/go-gcc.cc: ditto.
      	* go/go-lang.c: ditto.
      	* go/gdump.c: ditto.
      	* graphite-blocking.c: ditto.
      	* graphite.c: ditto.
      	* graphite-dependencies.c: ditto.
      	* graphite-interchange.c: ditto.
      	* graphite-isl-ast-to-gimple.c: ditto.
      	* graphite-optimize-isl.c: ditto.
      	* graphite-poly.c: ditto.
      	* graphite-scop-detection.c: ditto.
      	* graphite-sese-to-poly.c: ditto.
      	* hw-doloop.c: Include symtab.h due to flattening of tree.h.
      	* ifcvt.c: ditto.
      	* init-regs.c:  Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* internal-fc.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h,options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* ipa.c: ditto.
      	* ipa-chkp.c: ditto.
      	* ipa-comdats.c:  Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* ipa-cp.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h,options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* ipa-devirt.c:  Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* ipa-icf.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h,options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* ipa-icf-gimple.c: ditto.
      	* ipa-inline-analysis.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* ipa-inline.c: ditto.
      	* ipa-inline-transform.c: ditto.
      	* ipa-polymorhpic-call.c: ditto.
      	* ipa-profile.c: ditto.
      	* ipa-prop.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* ipa-pure-const.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* ipa-ref.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* ipa-reference.c: ditto.
      	* ipa-split.c: ditto.
      	* ipa-utils.c: ditto.
      	* ipa-visbility.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* ira.c: ditto.
      	* ira-color.c: Include hash-set.h due to flattening of tree.h.
      	* ira-costs.c: ditto.
      	* ira-emit.c: ditto.
      	* java/boehm.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* java/builtins.c: ditto.
      	* java/class.c: ditto.
      	* java/constants.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* java/decl.c: ditto.
      	* java/except.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* java/expr.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h,inchash.h and real.h due to flattening of tree.h.
      	* java/gimplify.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* java/jcf-dump.c: ditto.
      	* java/jcf-io.c: ditto.
      	* java/jcf-parse.c: ditto.
      	* java/jvgenmain.c: ditto.
      	* java/lang.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* java/mangle.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* java/mangle_name.c: ditto.
      	* java/resource.c: ditto.
      	* java/typeck.c: ditto.
      	* java/verify-glue.c: ditto.
      	* java/verify-impl.c: ditto.
      	* jump.c: Include symtab.h due to flattening of tree.h.
      	* langhooks.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* loop-doloop.c: Include symtab.h due to flattening of tree.h.
      	* loop-init.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* loop-invariant.c: Include symtab.h due to flattening of tree.h.
      	* loop-iv.c: ditto.
      	* loop-unroll.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* lower-subreg.c: ditto.
      	* lra-assigns.c: Include symtab.h due to flattening of tree.h.
      	* lra.c: Include symtab.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* lra-coalesce.c: Include symtab.h due to flattening of tree.h.
      	* lra-constraints.c: ditto.
      	* lra-eliminations.c: ditto.
      	* lra-livesc: ditto.
      	* lra-remat.c: ditto.
      	* lra-spills.c: ditto.
      	* lto/lto.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* lto/lto-lang.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* lto/lto-object.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* lto/lto-partition.c: ditto.
      	* lto/lto-symtab.c: ditto.
      	* lto-cgraph.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* lto-compress.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* lto-opts.c: ditto.
      	* lto-section-in.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* lto-section-out.c: ditto.
      	* lto-streamer.c: ditto.
      	* lto-streamer-in.c: ditto.
      	* lto-streamer-out.c: ditto.
      	* modulo-sched.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* objc/objc-act.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options, fold-const.h,
      	wide-int.h, and inchash.h due to flattening of tree.h.
      	* objc/objc-encoding.c: ditto.
      	* objc/objc-gnu-runtime-abi-01.c: ditto.
      	* objc/objc-lang.c: ditto.
      	* objc/objc-map.c: ditto.
      	* objc/objc-next-runtime-abi-01.c: ditto.
      	* objc/objc-next-runtime-abi-02.c: ditto.
      	* objc/objc-runtime-shared-support.c: ditto.
      	* objcp/objcp-decl.c: ditto.
      	* objcp/objcp-lang.c: ditto.
      	* omega.c: ditto.
      	* omega-low.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* optabs.c: ditto.
      	* opts-global.c: ditto.
      	* passes.c: ditto.
      	* plugin.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* postreload.c: Include symtab.h due to flattening of tree.h.
      	* postreload-gcse.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* predict.c: ditto.
      	* print-rtl.c: ditto.
      	* print-tree.c: ditto.
      	* profile.c: Include symtab.h, fold-const.h
      	and inchash.h due to flattening of tree.h.
      	* real.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* realmpfr.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* recog.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* ree.c: ditto.
      	* reginfo.c: ditto.
      	* reg-stack.c: ditto.
      	* reload1.c: Include symtab.h, fold-const.h, wide-int.h
      	and inchash.h due to flattening of tree.h.
      	* reload.c: Include symtab.h due to flattening of tree.h.
      	* reorg.c: ditto.
      	* rtlanal.c: Include symtab.h, fold-const.h, wide-int.h
      	and inchash.h due to flattening of tree.h.
      	* rtl-chkp.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* rtlhooks.c: Include symtab.h due to flattening of tree.h.
      	* sanopt.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* sched-deps.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* sched-vis.c: ditto.
      	* sdbout.c: ditto.
      	* sel-sched.c: Include symtab.h, fold-const.h, wide-int.h
      	and inchash.h due to flattening of tree.h.
      	* sel-sched-ir.c: ditto.
      	* sese.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* shrink-wrap.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* simplify-rtx.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* stack-ptr-mod.c: ditto.
      	* stmt.c: ditto.
      	* store-motion.c: ditto.
      	* store-layout.c: ditto.
      	* stringpool.c: ditto.
      	* symtab.c: ditto.
      	* target-globals.c: ditto.
      	* targhooks.c: ditto.
      	* toplev.c: ditto.
      	* tracer.c: ditto.
      	* trans-mem.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* tree-affine.c: ditto.
      	* tree-browser.c: ditto.
      	* tree.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* tree-call-cdce.c: Include symtab.h, alias.h, double-int.h,
      	fold-const.h, wide-int.h, inchash.h and real.h due to
      	flattening of tree.h.
      	* tree-cfg.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* tree-cfgcleanup.c: ditto.
      	* tree-chkp.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* tree-chkp-opt.c: ditto.
      	* tree-chrec.c: ditto.
      	* tree-chkp-opt.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h and
      	real.h due to flattening of tree.h.
      	* tree-core.h: Flatten header file by removing all #include statements.
      	* tree-data-ref.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* tree-dfa.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h and
      	real.h due to flattening of tree.h.
      	* tree-diagnostic.c: ditto.
      	* tree-dump.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h, real.h and
      	fixed-value.h due to flattening of tree.h.
      	* tree-dfa.c: ditto.
      	* tree-eh.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h and
      	real.h due to flattening of tree.h.
      	* tree-emutls.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* tree.h: Flatten header files by removing all includes except tree-core.h.
      	Remove inline function convert_to_ptrofftype_loc to relocate to fold-const.c.
      	Remove macro convert_to_ptrofftype to relocate to fold-const.h.
      	Remove inline function fold_build_pointer_plus_loc to relocate to fold-const.c.
      	Remove macro fold_build_pointer_plus to relocate to fold-const.h.
      	Remove inline function fold_build_pointer_plus_hwi_loc to relocate to fold-const.c.
      	Remove macro fold_build_pointer_plus_hwi to relocate to fold-const.h.
      	* tree-if-conv.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h, real.h and
      	fixed-value.h due to flattening of tree.h.
      	* tree-inline.c: ditto.
      	* tree-into-ssa.c: ditto.
      	* tree-iterator.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* tree-loop-distribution.c: ditto.
      	* tree-nested.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* tree-nrv.c: ditto.
      	* tree-object-size.c: ditto.
      	* tree-outof-ssa.c: ditto.
      	* tree-parloops.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* tree-phinodes.c: ditto.
      	* tree-predcom.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* tree-pretty-print.c: ditto.
      	* tree-profile.c: double-int.h, input.h, alias.h, symtab.h,
      	fold-const.h, wide-int.h and inchash.h due to flattening of tree.h.
      	* tree-scalar-evolution.c: Include hash-set.h, machmode.h, vec.h,
      	double-int.h, input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h and inchash.h due to flattening of tree.h.
      	* tree-sra.c: Include  vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
      	inchash.h due to flattening of tree.h.
      	* tree-ssa-alias.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* tree-ssa.c: ditto.
      	* tree-ssa-ccp.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h
      	and real.h due to flattening of tree.h.
      	* tree-ssa-coalesce.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* tree-ssa-copy.c: ditto.
      	* tree-ssa-copyrename.c: ditto.
      	* tree-ssa-dce.c: ditto.
      	* tree-ssa-dom.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h
      	and real.h due to flattening of tree.h.
      	* tree-ssa-dse.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* tree-ssa-forwprop.c: ditto.
      	* tree-ssa-ifcombine.c: ditto.
      	* tree-ssa-live.c: ditto.
      	* tree-ssa-loop.c: ditto.
      	* tree-ssa-loop-ch.c: ditto.
      	* tree-ssa-loop-im.c: ditto.
      	* tree-ssa-loop-ivcanon.c: ditto.
      	* tree-ssa-loop-ivopts.c: ditto.
      	* tree-ssa-loop-manip.c: ditto.
      	* tree-ssa-loop-niter.c: ditto.
      	* tree-ssa-loop-prefetch.c: ditto.
      	* tree-ssa-loop-unswitch.c: ditto.
      	* tree-ssa-loop-math-opts.c: ditto.
      	* tree-ssanames.c: ditto.
      	* tree-ssa-operands.c: ditto.
      	* tree-ssa-phiopt.c: ditto.
      	* tree-ssa-phiprop.c: ditto.
      	* tree-ssa-pre.c: ditto.
      	* tree-ssa-propagate.c: ditto.
      	* tree-ssa-reassoc.c: ditto.
      	* tree-ssa-sccvn.c: ditto.
      	* tree-ssa-sink.c: ditto.
      	* tree-ssa-strlen.c: Include hash-set.h, machmode.h, vec.h,
      	double-int.h, input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h and inchash.h due to flattening of tree.h.
      	* tree-ssa-structalias.c: double-int.h, input.h, alias.h, symtab.h,
      	fold-const.h, wide-int.h and inchash.h due to flattening of tree.h.
      	* tree-ssa-tail-merge.c: Include hash-set.h, machmode.h, vec.h,
      	double-int.h, input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h and inchash.h due to flattening of tree.h.
      	* tree-ssa-ter.c: ditto.
      	* tree-ssa-threadedge.c: ditto.
      	* tree-ssa-threadupdate.c: Include hash-set.h, machmode.h, vec.h,
      	double-int.h, input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h and inchash.h due to flattening of tree.h.
      	* tree-ssa-uncprop.c: Include hash-set.h, machmode.h, vec.h,
      	double-int.h, input.h, alias.h, symtab.h, fold-const.h,
      	wide-int.h and inchash.h due to flattening of tree.h.
      	* tree-ssa-uninit.c: ditto.
      	* tree-stdarg.c: Include vec.h, double-int.h, input.h, alias.h,
      	symtab.h, fold-const.h, wide-int.h and inchash.h due to flattening
      	of tree.h.
      	* tree-streamer.c: Include vec.h, double-int.h, input.h, alias.h,
      	symtab.h, options.h, fold-const.h, wide-int.h and
      	inchash.h due to flattening of tree.h.
      	* tree-streamer-in.c: Include hash-set.h, machmode.h, vec.h,
      	double-int.h, input.h, alias.h, symtab.h, options.h, fold-const.h,
      	wide-int.h, inchash.h, real.h and fixed-value.h due to flattening
      	of tree.h.
      	* tree-streamer-out.c: dittoo.
      	* tree-switch-conversion.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* tree-tailcall.c: ditto.
      	* tree-vect-data-refs.c: ditto.
      	* tree-vect-generic.c: Include hash-set.h, machmode.h, vec.h, double-int.h, input.h,
      	alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* tree-vect-loop.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* tree-vect-loop-manip.c: ditto.
      	* tree-vectorizer.c: ditto.
      	* tree-vect-patterns.c: ditto.
      	* tree-vect-slp.c: ditto.
      	* tree-vect-stmts.c: ditto.
      	* tree-vrp.c: ditto.
      	* tsan.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* ubsan.c: ditto.
      	* value-prof.c.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* varasm.c: ditto.
      	* varpool.c: ditto.
      	* var-tracking.c: ditto.
      	* vmsdbgout.c: ditto.
      	* vtable-verify.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* wide-int.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      	* xcoffout.c: ditto.
      	* libcc1/plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
      	input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
      	due to flattening of tree.h.
      
      From-SVN: r219402
      Michael Collison committed
  2. 05 Jan, 2015 1 commit
  3. 28 Oct, 2014 1 commit
    • cgraph.h: Flatten. · c582198b
      	* cgraph.h: Flatten.  Remove all include files.
      	(symbol_table::initialize): Move to cgraph.c.
      	* cgraph.c: Adjust include files.
      	(symbol_table::initialize): Relocate from cgraph.h.
      	* gengtype.c (open_base_files): Adjust include files.
      	* gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
      	included files.
      	* ipa-inline.h: Remove all include files.
      	* ipa-prop.h: Ditto.
      	* ipa-reference.h: Ditto.
      	* ipa-utils.h: Ditto:
      	* lto-streamer.h: Remove cgraph.h from include list.
      	* asan.c: Adjust include files.
      	* auto-profile.c: Ditto.
      	* bb-reorder.c: Ditto.
      	* calls.c: Ditto.
      	* cfgexpand.c: Ditto.
      	* cgraphbuild.c: Ditto.
      	* cgraphclones.c: Ditto.
      	* cgraphunit.c: Ditto.
      	* combine.c: Ditto.
      	* coverage.c: Ditto.
      	* data-streamer.c: Ditto.
      	* data-streamer-in.c: Ditto.
      	* data-streamer-out.c: Ditto.
      	* dbxout.c: Ditto.
      	* dwarf2out.c: Ditto.
      	* except.c: Ditto.
      	* expr.c: Ditto.
      	* final.c: Ditto.
      	* fold-const.c: Ditto.
      	* ggc-page.c: Ditto.
      	* gimple-fold.c: Ditto.
      	* gimple-iterator.c: Ditto.
      	* gimple-pretty-print.c: Ditto.
      	* gimple-streamer-in.c: Ditto.
      	* gimple-streamer-out.c: Ditto.
      	* gimplify.c: Ditto.
      	* ipa.c: Ditto.
      	* ipa-comdats.c: Ditto.
      	* ipa-cp.c: Ditto.
      	* ipa-devirt.c: Ditto.
      	* ipa-icf.c: Ditto.
      	* ipa-icf-gimple.c: Ditto.
      	* ipa-inline-analysis.c: Ditto.
      	* ipa-inline.c: Ditto.
      	* ipa-inline-transform.c: Ditto.
      	* ipa-polymorphic-call.c: Ditto.
      	* ipa-profile.c: Ditto.
      	* ipa-prop.c: Ditto.
      	* ipa-pure-const.c: Ditto.
      	* ipa-ref.c: Ditto.
      	* ipa-reference.c: Ditto.
      	* ipa-split.c: Ditto.
      	* ipa-utils.c: Ditto.
      	* ipa-visibility.c: Ditto.
      	* langhooks.c: Ditto.
      	* lto-cgraph.c: Ditto.
      	* lto-compress.c: Ditto.
      	* lto-opts.c: Ditto.
      	* lto-section-in.c: Ditto.
      	* lto-section-out.c: Ditto.
      	* lto-streamer.c: Ditto.
      	* lto-streamer-in.c: Ditto.
      	* lto-streamer-out.c: Ditto.
      	* omp-low.c: Ditto.
      	* opts-global.c: Ditto.
      	* passes.c: Ditto.
      	* predict.c: Ditto.
      	* print-tree.c: Ditto.
      	* profile.c: Ditto.
      	* ree.c: Ditto.
      	* stor-layout.c: Ditto.
      	* symtab.c: Ditto.
      	* toplev.c: Ditto.
      	* trans-mem.c: Ditto.
      	* tree.c: Ditto.
      	* tree-cfg.c: Ditto.
      	* tree-eh.c: Ditto.
      	* tree-emutls.c: Ditto.
      	* tree-inline.c: Ditto.
      	* tree-nested.c: Ditto.
      	* tree-pretty-print.c: Ditto.
      	* tree-profile.c: Ditto.
      	* tree-sra.c: Ditto.
      	* tree-ssa-alias.c: Ditto.
      	* tree-ssa-loop-ivcanon.c: Ditto.
      	* tree-ssa-loop-ivopts.c: Ditto.
      	* tree-ssa-pre.c: Ditto.
      	* tree-ssa-structalias.c: Ditto.
      	* tree-streamer.c: Ditto.
      	* tree-streamer-in.c: Ditto.
      	* tree-streamer-out.c: Ditto.
      	* tree-switch-conversion.c: Ditto.
      	* tree-tailcall.c: Ditto.
      	* tree-vect-data-refs.c: Ditto.
      	* tree-vectorizer.c: Ditto.
      	* tree-vect-stmts.c: Ditto.
      	* tsan.c: Ditto.
      	* ubsan.c: Ditto.
      	* value-prof.c: Ditto.
      	* varasm.c: Ditto.
      	* varpool.c: Ditto.
      	* config/arm/arm.c: Ditto.
      	* config/bfin/bfin.c: Ditto.
      	* config/c6x/c6x.c: Ditto.
      	* config/cris/cris.c: Ditto.
      	* config/darwin.c: Ditto.
      	* config/darwin-c.c: Ditto.
      	* config/i386/i386.c: Ditto.
      	* config/i386/winnt.c: Ditto.
      	* config/microblaze/microblaze.c: Ditto.
      	* config/mips/mips.c: Ditto.
      	* config/rs6000/rs6000.c: Ditto.
      	* config/rx/rx.c: Ditto.
      
      	* ada/gcc-interface/trans.c: Adjust include files.
      	* ada/gcc-interface/utils.c: Ditto.
      
      	* c/c-decl.c: Adjust include files.
      	* c/c-parser.c: Ditto.
      
      	* c-family/c-common.c: Adjust include files.
      	* c-family/c-gimplify.c: Ditto.
      	* c-family/cilk.c: Ditto.
      	* c-family/c-pragma.c: Ditto.
      	* c-family/c-ubsan.c: Ditto.
      
      	* cp/call.c: Adjust include files.
      	* cp/class.c: Ditto.
      	* cp/decl2.c: Ditto.
      	* cp/decl.c: Ditto.
      	* cp/lambda.c: Ditto.
      	* cp/mangle.c: Ditto.
      	* cp/method.c: Ditto.
      	* cp/optimize.c: Ditto.
      	* cp/parser.c: Ditto.
      	* cp/semantics.c: Ditto.
      	* cp/tree.c: Ditto.
      	* cp/vtable-class-hierarchy.c: Ditto.
      
      	* fortran/f95-lang.c: Adjust include files.
      	* fortran/trans-decl.c: Ditto.
      
      	* go/go-gcc.cc: Adjust include files.
      
      	* java/class.c: Adjust include files.
      	* java/decl.c: Ditto.
      	* java/jcf-parse.c: Ditto.
      	* java/resource.c: Ditto.
      
      	* lto/lto.c: Adjust include files.
      	* lto/lto-lang.c: Ditto.
      	* lto/lto-object.c: Ditto.
      	* lto/lto-partition.c: Ditto.
      	* lto/lto-symtab.c: Ditto.
      
      	* objc/objc-act.c: Adjust include files.
      
      From-SVN: r216805
      Andrew MacLeod committed
  4. 12 Oct, 2014 1 commit
    • move many gc hashtab to hash_table · 2a22f99c
      gcc/
      
      * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
      	config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
      	config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
      	function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
      	output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
      	tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
      	* doc/gty.texi (for_user): Document new option.
      	* gengtype.c (create_user_defined_type): Don't try to get a struct for
      	char.
      	(walk_type): Don't error out on for_user option.
      	(write_func_for_structure): Emit user marking routines if requested by
      	for_user option.
      	(write_local_func_for_structure): Likewise.
      	(main): Mark types with for_user option as used.
      	* ggc.h (gt_pch_nx): Add overload for unsigned int.
      	* hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
      	* hash-table.h (ggc_hasher): New struct.
      	(hash_table::create_ggc): New function.
      	(gt_pch_nx): New overload for hash_table.
      
      java/
      
      	* class.c, decl.c, except.c, expr.c, java-tree.h, lang.c: Use
      	hash_table instead of hashtab.
      
      objc/
      
      	* objc-act.c: use hash_table instead of hashtab.
      
      cp/
      
      	* cp-gimplify.c, cp-tree.h, decl.c, mangle.c, name-lookup.c,
      	pt.c, semantics.c, tree.c, typeck2.c: Use hash_table instead of
      	hashtab.
      
      fortran/
      
      	* trans-decl.c, trans.c, trans.h: Use hash_table instead of hashtab.
      
      c-family/
      
      	* c-common.c: Use hash_table instead of hashtab.
      
      From-SVN: r216127
      Trevor Saunders committed
  5. 25 Aug, 2014 1 commit
    • IPA C++ refactoring 4/N · 3dafb85c
      	* cgraph.h (symtab_node):
      	(bool needed_p (void)): created from decide_is_symbol_needed
      	(bool referred_to_p (void)): created from referred_to_p
      	(static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
      	* cgraph.h (cgraph_node):
      	(void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
      	(void expand (void)): created from expand_function
      	(static void finalize_function (tree, bool)): created from cgraph_finalize_function
      	(static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
      	(static cgraph_global_info *global_info (tree)): created from cgraph_global_info
      	(static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
      	* cgraph.h (varpool_node):
      	(static void add (tree decl): created from varpool_add_new_variable
      	* cgraph.h (cgraph_edge):
      	void remove (void);
      	(void remove_caller (void)): created from cgraph_edge_remove_caller
      	(void remove_callee (void)): created from cgraph_edge_remove_callee
      	(void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
      	  created from cgraph_set_call_stmt	
      	(void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
      	(cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
      	(cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
      	  gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
      	(void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
      	  created from cgraph_speculative_call_info
      	(cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
      	  int freq_scale, bool update_original)): created from cgraph_clone_edge
      	(cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
      	(bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
      	(bool recursive_p (void)): created from cgraph_edge_recursive_p
      	(bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
      	(static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges 
      	(static void rebuild_references (void)): created from cgraph_rebuild_references
      	* cgraph.h (symbol_table):
      	(create_reference): renamed from add_reference
      	(maybe_create_reference): renamed from maybe_add_reference
      	(void register_symbol (symtab_node *node)): new function
      	(void clear_asm_symbols (void)): new function
      	(void unregister (symtab_node *node)): new function
      	(void release_symbol (cgraph_node *node, int uid)): new function
      	(cgraph_node * allocate_cgraph_symbol (void)): new function
      	(void initialize (void)): created from cgraph_init
      	(symtab_node *first_symbol (void)):new function
      	(asm_node *first_asm_symbol (void)):new function
      	(symtab_node *first_defined_symbol (void)):new function
      	(varpool_node *first_variable (void)):new function
      	(varpool_node *next_variable (varpool_node *node)):new function
      	(varpool_node *first_static_initializer (void)):new function
      	(varpool_node *next_static_initializer (varpool_node *node)):new function
      	(varpool_node *first_defined_variable (void)):new function
      	(varpool_node *next_defined_variable (varpool_node *node)):new function
      	(cgraph_node *first_defined_function (void)):new function
      	(cgraph_node *next_defined_function (cgraph_node *node)):new function
      	(cgraph_node *first_function (void)):new function
      	(cgraph_node *next_function (cgraph_node *node)):new function
      	(cgraph_node *first_function_with_gimple_body (void)):new function
      	(asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
      	(bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
      	  created from symtab_remove_unreachable_nodes
      	(void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
      	(void process_new_functions (void)): created from cgraph_process_new_functions
      	(void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
      	(bool output_variables (void)): created from varpool_node::output_variables
      	(void output_asm_statements (void)): created from output_asm_statements
      	(void finalize_compilation_unit (void)): created from finalize_compilation_unit
      	(void compile (void)): created from compile
      	(void output_weakrefs (void)): created from output_weakrefs
      	(cgraph_node *create_empty (void)): created from cgraph_node::create_empty
      	(cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
      	  gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
      	(void free_edge (cgraph_edge *e)): created from cgraph_free_edge
      	(cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
      	  created from cgraph_next_function_with_gimple_body
      	(void remove_edge_removal_hook (cgraph_edge_hook_list *)):
      	  created from cgraph_remove_edge_removal_hook
      	(cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
      	  created from cgraph_add_node_removal_hook
      	(void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
      	  created from cgraph_remove_node_removal_hook
      	(varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
      	  created from varpool_add_node_removal_hook
      	(void remove_varpool_removal_hook (varpool_node_hook_list *)):
      	  created from varpool_remove_node_removal_hook
      	(cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
      	  created from cgraph_add_function_insertion_hook
      	(void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
      	  created from cgraph_remove_function_insertion_hook
      	(varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
      	  created from varpool_add_variable_insertion_hook
      	(void remove_varpool_insertion_hook (varpool_node_hook_list *)):
      	  created from varpool_remove_variable_insertion_hook
      	(cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
      	  created from cgraph_add_edge_duplication_hook
      	(void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
      	  created from cgraph_remove_edge_duplication_hook
      	(cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
      	  created from cgraph_add_node_duplication_hook
      	(void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
      	  created from cgraph_remove_node_duplication_hook
      	(void call_edge_removal_hooks (cgraph_edge *e)):
      	  created from cgraph_call_edge_removal_hooks
      	(void call_cgraph_insertion_hooks (cgraph_node *node)):
      	  created from call_function_insertion_hooks 
      	(void call_cgraph_removal_hooks (cgraph_node *node)):
      	  created from cgraph_call_node_removal_hooks 
      	(void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
      	  created from cgraph_node::call_duplication_hooks 
      	(void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
      	  created from cgraph_call_edge_duplication_hooks
      	(void call_varpool_removal_hooks (varpool_node *node)):
      	  created from varpool_call_node_removal_hooks
      	(void call_varpool_insertion_hooks (varpool_node *node)):
      	  created from varpool_call_variable_insertion_hooks
      	(void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
      	  created from insert_to_assembler_name_hash
      	(void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
      	  created from unlink_from_assembler_name_hash
      	(void symtab_prevail_in_asm_name_hash (symtab_node *node)):
      	  created from symtab_prevail_in_asm_name_hash
      	(void symtab_initialize_asm_name_hash (void)):
      	  created from symtab_initialize_asm_name_hash
      	(void change_decl_assembler_name (tree decl, tree name)):
      	  created from change_decl_assembler_name
      	(void materialize_all_clones (void)): created from cgraph_materialize_all_clones
      	(static hashval_t decl_assembler_name_hash (const_tree asmname)):
      	  created from decl_assembler_name_hash
      	(static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
      	  created from decl_assembler_name_equal
      	(static hashval_t hash_node_by_assembler_name (const void *p)):
      	  created from hash_node_by_assembler_name
      	(static int eq_assembler_name (const void *p1, const void *p2)):
      	  created from eq_assembler_name
      
      From-SVN: r214422
      Martin Liska committed
  6. 24 Jul, 2014 1 commit
    • IPA C++ refactoring 1/N · d52f5295
        * cgraph.h (symtab_node):
        (void register_symbol (void)): created from symtab_register_node
        (void remove (void)): created from symtab_remove_node
        (void dump (FILE *f)): created from dump_symtab_node
        (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
        (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
        (struct ipa_ref *add_reference (symtab_node *referred_node,
          enum ipa_ref_use use_type)): created from add_reference 
        (struct ipa_ref *add_reference (symtab_node *referred_node,
          enum ipa_ref_use use_type, gimple stmt)): created from add_reference
        (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
          gimple stmt)): created from maybe_add_reference
        (bool semantically_equivalent_p (symtab_node *target)): created from
          symtab_semantically_equivalent_p
        (void remove_from_same_comdat_group (void)): created from
          remove_from_same_comdat_group
        (void add_to_same_comdat_group (symtab_node *old_node)): created from
          symtab_add_to_same_comdat_group
        (void dissolve_same_comdat_group_list (void)): created from
          symtab_dissolve_same_comdat_group_list
        (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
        (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
          created from symtab_alias_ultimate_target
        (inline symtab_node *next_defined_symbol (void)): created from
          symtab_next_defined_symbol
        (bool resolve_alias (symtab_node *target)): created from
          symtab_resolve_alias
        (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
          void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
        (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
        (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
        (void set_section (const char *section)): created from set_section_1 
        (enum availability get_availability (void)): created from symtab_node_availability
        (void make_decl_local (void)): created from symtab_make_decl_local
        (bool real_symbol_p (void)): created from symtab_read_node
        (can_be_discarded_p (void)): created from symtab_can_be_discarded
        (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
        (inline bool in_same_comdat_group_p (symtab_node *target)): created from
          symtab_in_same_comdat_p;
        (bool address_taken_from_non_vtable_p (void)): created from
          address_taken_from_non_vtable_p
        (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
        (static void dump_table (FILE *)): created from dump_symtab
        (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
        (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
        (static bool used_from_object_file_p_worker (symtab_node *node)): created from
          symtab_used_from_object_file_p 
        (void dump_base (FILE *)): created from dump_symtab_base
        (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
        (void unregister (void)): created from symtab_unregister_node
        (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
        (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
        (static bool noninterposable_alias (symtab_node *node, void *data)): created from
          symtab_nonoverwritable_alias_1
        * cgraph.h (cgraph_node):
        (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
          created from cgraph_remove_node_and_inline_clones
        (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
        (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
          bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
        (cgraph_node *function_symbol (enum availability *avail = NULL)):
          created from cgraph_function_node
        (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
          vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
          struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
          created from cgraph_create_clone 
        (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
          vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
          created from cgraph_create_virtual_clone
        (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
        (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
          bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
        (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
          vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
          bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
          created from cgraph_function_version_info
        (struct cgraph_function_version_info *insert_new_function_version (void)):
          created from insert_new_cgraph_node_version
        (struct cgraph_function_version_info *function_version (void)): created from
          get_cgraph_node_version
        (void analyze (void)): created from analyze_function
        (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
          HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
          tree real_alias) cgraph_add_thunk
        (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
        (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
          created from cgraph_function_or_thunk_node
        (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
          created from expand_thunk
        (void reset (void)): created from cgraph_reset_node
        (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
        (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
        (void remove (void)): created from cgraph_remove_node
        (void dump (FILE *f)): created from dump_cgraph_node
        (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
        (bool get_body (void)): created from cgraph_get_body
        (void release_body (void)): created from cgraph_release_function_body
        (void unnest (void)): created from cgraph_unnest_node
        (void make_local (void)): created from cgraph_make_node_local
        (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
        (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
          gcov_type count, int freq)): created from cgraph_create_edge
        (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
          gcov_type count, int freq)): created from cgraph_create_indirect_edge
        (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
          gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
          created from cgraph_create_edge_including_clones
        (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
        (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
        (void remove_callers (void)): created from cgraph_node_remove_callers
        (void remove_callees (void)): created from cgraph_node_remove_callees
        (enum availability get_availability (void)): created from cgraph_function_body_availability
        (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
        (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
        (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
        (void call_duplication_hooks (cgraph_node *node2)): created from
          cgraph_call_node_duplication_hooks
        (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
          void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
        (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
          void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
        (void call_function_insertion_hooks (void)):
          created from cgraph_call_function_insertion_hooks
        (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
        (bool local_p (void)): created from cgraph_local_node
        (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
        (bool cannot_return_p (void)): created from cgraph_node_cannot_return
        (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
        (inline bool only_called_directly_or_aliased_p (void)):
          created from cgraph_only_called_directly_or_aliased_p
        (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
          created from cgraph_will_be_removed_from_program_if_no_direct_calls
        (bool can_remove_if_no_direct_calls_and_refs_p (void)):
          created from cgraph_can_remove_if_no_direct_calls_and_refs_p
        (bool can_remove_if_no_direct_calls_p (void)):
          created from cgraph_can_remove_if_no_direct_calls_p
        (inline bool has_gimple_body_p (void)):
          created from cgraph_function_with_gimple_body_p
        (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
        (static void dump_cgraph (FILE *f)): created from dump_cgraph
        (static inline void debug_cgraph (void)): created from debug_cgraph
        (static void record_function_versions (tree decl1, tree decl2)):
          created from record_function_versions
        (static void delete_function_version (tree decl)):
          created from delete_function_version
        (static void add_new_function (tree fndecl, bool lowered)):
          created from cgraph_add_new_function
        (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
        (static cgraph_node * create (tree decl)): created from cgraph_create_node
        (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
        (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
        (static cgraph_node *get_for_asmname (tree asmname)):
          created from cgraph_node_for_asm
        (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
          created from cgraph_same_body_alias 
        (static bool used_from_object_file_p_worker (cgraph_node *node,
          void *): new function
        (static bool non_local_p (cgraph_node *node, void *)):
          created from cgraph_non_local_node_p_1
        (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
          created from verify_cgraph
        (static bool make_local (cgraph_node *node, void *)):
          created from cgraph_make_node_local
        (static cgraph_node *create_alias (tree alias, tree target)):
          created from cgraph_create_function_alias
        (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
          gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
          created from cgraph_create_edge_1
        * cgraph.h (varpool_node):
        (void remove (void)): created from varpool_remove_node
        (void dump (FILE *f)): created from dump_varpool_node
      
      From-SVN: r212982
      Martin Liska committed
  7. 17 May, 2014 1 commit
    • use templates instead of gengtype for typed allocation functions · 766090c2
      gcc/ChangeLog:
      
      	* alias.c (record_alias_subset): Adjust.
      	* bitmap.c (bitmap_element_allocate): Likewise.
      	(bitmap_gc_alloc_stat): Likewise.
      	* cfg.c (init_flow): Likewise.
      	(alloc_block): Likewise.
      	(unchecked_make_edge): Likewise.
      	* cfgloop.c (alloc_loop): Likewise.
      	(flow_loops_find): Likewise.
      	(rescan_loop_exit): Likewise.
      	* cfgrtl.c (init_rtl_bb_info): Likewise.
      	* cgraph.c (insert_new_cgraph_node_version): Likewise.
      	(cgraph_allocate_node): Likewise.
      	(cgraph_create_edge_1): Likewise.
      	(cgraph_allocate_init_indirect_info): Likewise.
      	* cgraphclones.c (cgraph_clone_edge): Likewise.
      	* cgraphunit.c (add_asm_node): Likewise.
      	(init_lowered_empty_function): Likewise.
      	* config/aarch64/aarch64.c (aarch64_init_machine_status):
      	Likewise.
      	* config/alpha/alpha.c (alpha_init_machine_status): Likewise.
      	(alpha_use_linkage): Likewise.
      	* config/arc/arc.c (arc_init_machine_status): Likewise.
      	* config/arm/arm.c (arm_init_machine_status): Likewise.
      	* config/avr/avr.c (avr_init_machine_status): Likewise.
      	* config/bfin/bfin.c (bfin_init_machine_status): Likewise.
      	* config/c6x/c6x.c (c6x_init_machine_status): Likewise.
      	* config/cris/cris.c (cris_init_machine_status): Likewise.
      	* config/darwin.c (machopic_indirection_name): Likewise.
      	(darwin_build_constant_cfstring): Likewise.
      	(darwin_enter_string_into_cfstring_table): Likewise.
      	* config/epiphany/epiphany.c (epiphany_init_machine_status):
      	* Likewise.
      	* config/frv/frv.c (frv_init_machine_status): Likewise.
      	* config/i386/i386.c (get_dllimport_decl): Likewise.
      	(ix86_init_machine_status): Likewise.
      	(assign_386_stack_local): Likewise.
      	* config/i386/winnt.c (i386_pe_record_external_function):
      	Likewise.
      	(i386_pe_maybe_record_exported_symbol): Likewise.
      	(i386_pe_record_stub): Likewise.
      	* config/ia64/ia64.c (ia64_init_machine_status): Likewise.
      	* config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
      	* config/m32c/m32c.c (m32c_init_machine_status): Likewise.
      	(m32c_note_pragma_address): Likewise.
      	* config/mep/mep.c (mep_init_machine_status): Likewise.
      	(mep_note_pragma_flag): Likewise.
      	* config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
      	(mips16_local_alias): Likewise.
      	(mips_init_machine_status): Likewise.
      	* config/mmix/mmix.c (mmix_init_machine_status): Likewise.
      	* config/moxie/moxie.c (moxie_init_machine_status): Likewise.
      	* config/msp430/msp430.c (msp430_init_machine_status): Likewise.
      	* config/nds32/nds32.c (nds32_init_machine_status): Likewise.
      	* config/nios2/nios2.c (nios2_init_machine_status): Likewise.
      	* config/pa/pa.c (pa_init_machine_status): Likewise.
      	(pa_get_deferred_plabel): Likewise.
      	* config/rl78/rl78.c (rl78_init_machine_status): Likewise.
      	* config/rs6000/rs6000.c (builtin_function_type): Likewise.
      	(rs6000_init_machine_status): Likewise.
      	(output_toc): Likewise.
      	* config/s390/s390.c (s390_init_machine_status): Likewise.
      	* config/score/score.c (score_output_external): Likewise.
      	* config/sparc/sparc.c (sparc_init_machine_status): Likewise.
      	* config/spu/spu.c (spu_init_machine_status): Likewise.
      	* config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
      	* config/tilepro/tilepro.c (tilepro_init_machine_status):
      	* Likewise.
      	* config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
      	* coverage.c (coverage_end_function): Likewise.
      	* dbxout.c (dbxout_init): Likewise.
      	* doc/gty.texi: Don't mention variable_size attribute.
      	* dwarf2cfi.c (new_cfi): Adjust.
      	(new_cfi_row): Likewise.
      	(copy_cfi_row): Likewise.
      	(create_cie_data): Likewise.
      	* dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
      	(new_loc_descr): Likewise.
      	(find_AT_string_in_table): Likewise.
      	(add_addr_table_entry): Likewise.
      	(new_die): Likewise.
      	(add_var_loc_to_decl): Likewise.
      	(clone_die): Likewise.
      	(clone_as_declaration): Likewise.
      	(break_out_comdat_types): Likewise.
      	(new_loc_list): Likewise.
      	(add_loc_descr_to_each): Likewise.
      	(add_location_or_const_value_attribute): Likewise.
      	(add_linkage_name): Likewise.
      	(lookup_filename): Likewise.
      	(dwarf2out_var_location): Likewise.
      	(new_line_info_table): Likewise.
      	(dwarf2out_init): Likewise.
      	(mem_loc_descriptor): Likewise.
      	(loc_descriptor): Likewise.
      	(add_const_value_attribute): Likewise.
      	(tree_add_const_value_attribute): Likewise.
      	(comp_dir_string): Likewise.
      	(dwarf2out_vms_debug_main_pointer): Likewise.
      	(string_cst_pool_decl): Likewise.
      	* emit-rtl.c (set_mem_attrs): Likewise.
      	(get_reg_attrs): Likewise.
      	(start_sequence): Likewise.
      	(init_emit): Likewise.
      	(init_emit_regs): Likewise.
      	* except.c (init_eh_for_function): Likewise.
      	(gen_eh_region): Likewise.
      	(gen_eh_region_catch): Likewise.
      	(gen_eh_landing_pad): Likewise.
      	(add_call_site): Likewise.
      	* function.c (add_frame_space): Likewise.
      	(insert_temp_slot_address): Likewise.
      	(assign_stack_temp_for_type): Likewise.
      	(get_hard_reg_initial_val): Likewise.
      	(allocate_struct_function): Likewise.
      	(prepare_function_start): Likewise.
      	(types_used_by_var_decl_insert): Likewise.
      	* gengtype.c (variable_size_p): Remove function.
      	(enum alloc_quantity): Remove enum.
      	(write_typed_alloc_def): Remove function.
      	(write_typed_struct_alloc_def): Likewise.
      	(write_typed_typedef_alloc_def): Likewise.
      	(write_typed_alloc_defns): Likewise.
      	(main): Adjust.
      	* ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
      	(ggc_cleared_alloc_ptr_array_two_args): Likewise.
      	* ggc.h (ggc_alloc): new function.
      	(ggc_cleared_alloc): Likewise.
      	(ggc_vec_alloc): Template on type of vector element, and remove
      	element size argument.
      	(ggc_cleared_vec_alloc): Likewise.
      	* gimple.c (gimple_build_omp_for): Adjust.
      	(gimple_copy): Likewise.
      	* ipa-cp.c (get_replacement_map): Likewise.
      	(find_aggregate_values_for_callers_subset): Likewise.
      	(known_aggs_to_agg_replacement_list): Likewise.
      	* ipa-devirt.c (get_odr_type): Likewise.
      	* ipa-prop.c (ipa_node_duplication_hook): Likewise.
      	(read_agg_replacement_chain): Likewise.
      	* loop-iv.c (get_simple_loop_desc): Likewise.
      	* lto-cgraph.c (input_node_opt_summary): Likewise.
      	* lto-section-in.c (lto_new_in_decl_state): Likewise.
      	* lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
      	(input_eh_region): Likewise.
      	(input_eh_lp): Likewise.
      	(input_cfg): Likewise.
      	* optabs.c (set_optab_libfunc): Likewise.
      	(init_tree_optimization_optabs): Likewise.
      	(set_conv_libfunc): Likewise.
      	* passes.c (do_per_function_toporder): Likewise.
      	* rtl.h: Don't use variable_size gty attribute.
      	* sese.c (if_region_set_false_region): Adjust.
      	* stringpool.c (gt_pch_save_stringpool): Likewise.
      	* target-globals.c (save_target_globals): Likewise.
      	* toplev.c (general_init): Likewise.
      	* trans-mem.c (record_tm_replacement): Likewise.
      	(split_bb_make_tm_edge): Likewise.
      	* tree-cfg.c (move_sese_region_to_fn): Likewise.
      	* tree-data-ref.h (lambda_vector_new): Likewise.
      	* tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
      	* tree-iterator.c (tsi_link_before): Likewise.
      	(tsi_link_after): Likewise.
      	* tree-scalar-evolution.c (new_scev_info_str): Likewise.
      	* tree-ssa-loop-niter.c (record_estimate): Likewise.
      	* tree-ssa-operands.c (ssa_operand_alloc): Likewise.
      	* tree-ssa-operands.h: Don't use variable_size gty attribute.
      	* tree-ssa.c (init_tree_ssa): Adjust.
      	* tree-ssanames.c (set_range_info): Likewise.
      	(get_ptr_info): Likewise.
      	(duplicate_ssa_name_ptr_info): Likewise.
      	(duplicate_ssa_name_range_info): Likewise.
      	* tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
      	(unpack_ts_fixed_cst_value_fields): Likewise.
      	* tree.c (build_fixed): Likewise.
      	(build_real): Likewise.
      	(build_string): Likewise.
      	(decl_priority_info): Likewise.
      	(decl_debug_expr_insert): Likewise.
      	(decl_value_expr_insert): Likewise.
      	(decl_debug_args_insert): Likewise.
      	(type_hash_add): Likewise.
      	(build_omp_clause): Likewise.
      	* ubsan.c (decl_for_type_insert): Likewise.
      	* varasm.c (get_unnamed_section): Likewise.
      	(get_noswitch_section): Likewise.
      	(get_section): Likewise.
      	(get_block_for_section): Likewise.
      	(create_block_symbol): Likewise.
      	(build_constant_desc): Likewise.
      	(create_constant_pool): Likewise.
      	(force_const_mem): Likewise.
      	(record_tm_clone_pair): Likewise.
      	* varpool.c (varpool_create_empty_node): Likewise.
      
      gcc/c/ChangeLog:
      
      	* c-decl.c (finish_struct): Adjust.
      	(finish_enum): Likewise.
      	(bind): Adjust.
      	(record_inline_static): Likewise.
      	(push_scope): Likewise.
      	(make_label): Likewise.
      	(lookup_label_for_goto): Likewise.
      	(finish_struct): Likewise.
      	(finish_enum): Likewise.
      	(store_parm_decls): Likewise.
      	(c_push_function_context): Likewise.
      	* c-lang.h: Remove usage of variable_size gty attribute.
      	* c-parser.c (c_parse_init): Adjust.
      	(c_parse_file): Likewise.
      
      gcc/java/ChangeLog:
      
      	* class.c (add_method_1): Adjust.
      	(java_treetreehash_new): Likewise.
      	* constants.c (set_constant_entry): Likewise.
      	(cpool_for_class): Likewise.
      	* decl.c (make_binding_level): Likewise.
      	(java_dup_lang_specific_decl): Likewise.
      	* expr.c (add_type_assertion): Likewise.
      	* java-tree.h (MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC): Likewise.
      	(lang_decl): don't use variable_size gty attribute.
      	(MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Adjust.
      	(lang_type): Don't use variable_size gty attribute.
      	* jcf-parse.c (java_parse_file): Adjust.
      	(process_zip_dir): Likewise.
      	* jcf.h: Remove usage of variable_size gty attribute.
      	* jcf-reader.c (jcf_parse_constant_pool): Adjust.
      	(jcf_parse_bootstrap_methods): Likewise.
      
      gcc/objc/ChangeLog:
      
      	* objc-act.c (objc_build_string_object): Adjust.
      	(continue_class): Likewise.
      	* objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Likewise.
      	* objc-map.c (objc_map_alloc_ggc): Likewise.
      	(objc_map_private_resize): Likewise.
      	* objc-next-runtime-abi-02.c (objc_next_runtime_abi_02_init):
      	Likewise.
      	(hash_name_enter): Likewise.
      
      gcc/cp/ChangeLog:
      
      	* class.c (sorted_fields_type_new): Adjust.
      	* cp-cilkplus.c (cilk_install_body_with_frame_cleanup): Likewise.
      	* cp-objcp-common.c (decl_shadowed_for_var_insert): Likewise.
      	* cp-tree.h: Remove usage of variable_size gty attribute.
      	* decl.c (make_label_decl): Adjust.
      	(check_goto): Likewise.
      	(start_preparsed_function): Likewise.
      	(save_function_data): Likewise.
      	* lex.c (init_reswords): Likewise.
      	(retrofit_lang_decl): Likewise.
      	(cxx_dup_lang_specific_decl): Likewise.
      	(copy_lang_type): Likewise.
      	(cxx_make_type): Likewise.
      	* name-lookup.c (binding_entry_make): Likewise.
      	(binding_table_construct): Likewise.
      	(binding_table_new): Likewise.
      	(cxx_binding_make): Likewise.
      	(pushdecl_maybe_friend_1): Likewise.
      	(begin_scope): Likewise.
      	(push_to_top_level): Likewise.
      	* parser.c (cp_lexer_alloc): Likewise.
      	(cp_lexer_new_from_tokens): Likewise.
      	(cp_token_cache_new): Likewise.
      	(cp_parser_context_new): Likewise.
      	(cp_parser_new): Likewise.
      	(cp_parser_nested_name_specifier_opt): Likewise.
      	(cp_parser_template_id): Likewise.
      	* pt.c (maybe_process_partial_specialization): Likewise.
      	(register_specialization): Likewise.
      	(add_pending_template): Likewise.
      	(lookup_template_class_1): Likewise.
      	(push_tinst_level): Likewise.
      	* semantics.c (register_constexpr_fundef): Likewise.
      	(cxx_eval_call_expression): Likewise.
      	* typeck2.c (abstract_virtuals_error_sfinae): Likewise.
      
      gcc/fortran/ChangeLog:
      
      	* f95-lang.c (pushlevel): Adjust.
      	* trans-decl.c (gfc_allocate_lang_decl): Adjust.
      	(gfc_find_module): Likewise.
      	* trans-types.c (gfc_get_nodesc_array_type): Likewise.
      	(gfc_get_array_type_bounds): Likewise.
      	(gfc_nonrestricted_type): Likewise.
      	* trans.h: Don't use variable_size gty attribute.
      
      gcc/ada/ChangeLog:
      
      	* gcc-interface/ada-tree.h: Remove usage of variable_size gty
      	annotation.
      	* gcc-interface/decl.c (annotate_value): Adjust.
      	* gcc-interface/trans.c (Attribute_to_gnu): Likewise.
      	(push_range_check_info): Likewise.
      	(Loop_Statement_to_gnu): Likewise.
      	(Subprogram_Body_to_gnu): Likewise.
      	(Compilation_Unit_to_gnu): Likewise.
      	(start_stmt_group): Likewise.
      	* gcc-interface/utils.c (init_gnat_utils): Likewise.
      	(gnat_pushlevel): Likewise.
      	(maybe_pad_type): Likewise.
      
      gcc/go/ChangeLog:
      
      	* go-lang.c (struct GTY): Don't use variable_size gty attribute.
      
      gcc/c-family/ChangeLog:
      
      	* c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
      	* c-pragma.c (push_alignment): Adjust.
      	(handle_pragma_push_options): Likewise.
      
      gcc/lto/ChangeLog:
      
      	* lto-tree.h: Don't use variable_size gty attribute.
      	* lto.c (lto_read_in_decl_state): Adjust.
      	(create_subid_section_table): Likewise.
      	(lto_flatten_files): Likewise.
      	(read_cgraph_and_symbols): Likewise.
      
      gcc/objcp/ChangeLog:
      
      	* objcp-decl.h: Adjust.
      
      From-SVN: r210566
      Trevor Saunders committed
  8. 02 Jan, 2014 1 commit
  9. 22 Nov, 2013 1 commit
    • Remove macros that implicitly use input_location · 8400e75e
      gcc/
      	* input.h (input_line): Remove.
      	(input_filename): Likewise.
      	(in_system_header): Likewise.
      	* tree.h (EXPR_LOC_OR_HERE): Remove.
      	* config/bfin/bfin.c (output_file_start): Remove use of
      	input_filename macro.
      	* builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
      	* gimplify.c (internal_get_tmp_var): Likewise.
      	EXPR_LOC_OR_HERE macro.
      	(shortcut_cond_expr): Likewise.
      	* tree-diagnostic.c (diagnostic_report_current_function): Remove
      	use of input_filename macro.
      	* tree.c (get_file_function_name): Likewise.
      
      gcc/ada
      	* gcc-interface/utils2.c (build_call_raise): Remove use of
      	input_line macro.
      	(build_call_raise_range): Likewise.
      	(build_call_raise_column): Likewise.
      
      gcc/c-family
      	* c-common.c (unsafe_conversion_p): Remove use of
      	EXPR_LOC_OR_HERE macro.
      	(conversion_warning): Likewise.
      	(warnings_for_convert_and_check): Likewise.
      	(warn_for_collisions_1): Likewise.
      	(shorten_compare): Likewise, and remove use of in_system_header
      	macro, using the location from the former.
      	* c-lex.c (dump_one_header): Remove use of input_filename macro.
      	(cb_def_pragma): Remove use of in_system_header macro.
      	(lex_string): Likewise.
      	* c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
      
      gcc/c
      	* c-decl.c (define_label, shadow_tag_warned)
      	(check_bitfield_type_and_width, grokdeclarator, grokparms,
      	store_parm_decls_newstyle, store_parm_decls_oldstyle)
      	(declspecs_add_type): Remove use of in_system_header macro.
      	* c-parser.c (c_parser_unary_expression): Likewise.
      	* c-typeck.c (store_init_value, process_init_element)
      	(c_start_case): Likewise.
      
      	* c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
      	macro.
      
      	* c-parser.c (c_parser_set_source_position_from_token): Remove
      	reference to in_system_header from comment.
      
      gcc/cp
      	* call.c (build_integral_nontype_arg_conv): Remove use of
      	EXPR_LOC_OR_HERE macro.
      	(convert_like_real): Likewise.
      	(convert_arg_to_ellipsis): Likewise.
      	(build_cxx_call): Likewise.
      	(perform_implicit_conversion_flags): Likewise.
      	(initialize_reference): Likewise.
      	* cvt.c (cp_convert_to_pointer): Likewise.
      	(convert_to_reference): Likewise.
      	(ocp_convert): Likewise.
      	(convert_to_void): Likewise.
      	* decl.c (pop_label): Update comment.
      	(pop_switch): Remove use of EXPR_LOC_OR_HERE macro.
      	(check_tag_decl): Remove use of in_system_header macro.
      	(make_rtl_for_nonlocal_decl): Remove use of input_filename
      	macro.
      	(compute_array_index_type): Remove use of in_system_header
      	macro.
      	(grokdeclarator): Likewise.
      	* error.c (dump_global_iord): Remove use of input_filename
      	macro.
      	(location_of): Remove use of EXPR_LOC_OR_HERE macro.
      	(maybe_warn_cpp0x): Remove use of in_system_header macro.
      	* init.c (build_new_1): Remove use of EXPR_LOC_OR_HERE macro.
      	* lex.c (handle_pragma_interface): Remove use of input_filename
      	macro.
      	(handle_pragma_implementation): Likewise.
      	(cxx_make_type): Likewise.
      	(in_main_input_context): Likewise.
      	* name-lookup.c (push_binding_level): Remove use of
      	input_line macro.
      	(leave_scope): Likewise.
      	(resume_scope): Likewise.
      	* parser.c (cp_parser_unqualified_id): Remove use of
      	in_system_header macro.
      	(cp_parser_cast_expression): Likewise.
      	(cp_parser_declaration_seq_opt): Likewise.
      	(cp_parser_enumerator_list): Likewise.
      	(cp_parser_parameter_declaration_clause): Likewise.
      	(cp_parser_exception_specification_opt): Likewise.
      	* pt.c (unify_arg_conversion): Remove use of EXPR_LOC_OR_HERE
      	macro.
      	(convert_nontype_argument): Likewise.
      	(push_tinst_level): Remove use of in_system_header macro.
      	(tsubst_copy_and_build): Remove use of EXPR_LOC_OR_HERE
      	macros.
      	(do_decl_instantiation): Remove use of in_system_header macro.
      	(do_type_instantiation): Likewise.
      	* semantics.c (finish_call_expr): Remove use of EXPR_LOC_OR_HERE
      	macro.
      	(begin_class_definition): Remove use of input_filename macro.
      	(cxx_eval_call_expression): Remove use of EXPR_LOC_OR_HERE
      	macro.
      	(cxx_eval_constant_expression): Likewise.
      	(potential_constant_expression_1): Likewise.
      	* typeck.c (decay_conversion): Likewise.
      	(rationalize_conditional_expr): Likewise.
      	(build_x_compound_expr_from_list): Likewise.
      	(convert_for_assignment): Likewise.
      	* typeck2.c (check_narrowing): Likewise.
      
      gcc/fortran
      	* trans.c (trans_runtime_error_vararg): Remove use of input_line
      	macro.
      
      gcc/java
      	* class.c (maybe_layout_super_class): Update comment.
      	* decl.c (java_add_stmt): Remove use of input_filename macro.
      	* jcf-parse.c (set_source_filename): Remove use of
      	input_filename macro.
      	(parse_class_file): Remove use of input_line and input_filename
      	macros.
      	(java_parse_file): Remove use of input_filename macro.
      
      From-SVN: r205262
      David Malcolm committed
  10. 19 Nov, 2013 1 commit
    • Factor unrelated declarations out of tree.h. · d8a2d370
      This patch applies the rule that functions defined in FOO.c must be
      declared in FOO.h. One of the worst offenders in the code base is
      tree.h, unsurprisingly.
      
      The patch creates several new headers: attribs.h calls.h fold-const.h
      gcc-symtab.h print-rtl.h print-tree.h stmt.h stor-layout.h stringpool.h
      tree-nested.h tree-object-size.h varasm.h.
      
      Functions in each corresponding .c file got moved to those headers and
      others that already existed. I wanted to make this patch as mechanical
      as possible, so I made no attempt to fix problems like having
      build_addr defined in tree-inline.c. I left that for later.
      
      There were some declarations that I could not move out of tree.h
      because of header poisoning or the use of target macros. We forbid the
      inclusion of things like expr.h from FE files. While that's a
      reasonable idea, the FE file *still* manage to at expr.c functionality
      because the declarations they want to use were defined in tree.h.
      
      The affected files are builtins.h, emit-rtl.h and expr.h.
      
      If that functionality is allowed to be accessed from the FEs,
      then I will later move those functions out of expr.c into tree.c.
      I have moved these declarations to the bottom of tree.h so they
      are easy to identify later.
      
      There is a namespace collision with libcpp. The file gcc/symtab.c
      cannot use gcc/symtab.h because the #include command picks up
      libcpp/include/symtab.h first. So I named this file gcc-symtab.h
      for now.
      
      Finally, I added a new header to PLUGIN_HEADERS to account for the
      tree.h refactoring. I did not add all headers factored out of tree.h
      because it is unclear (and impossible to tell) what plugins need.
      This adds the one header used by the plugins in the testsuite.
      
      This will be changing quite dramatically as we progress with the header
      refactoring.
      
      This patch should offer some minimal incremental build advantages
      by reducing the size of tree.h. Changes that would otherwise
      affected tree.h, will now go to other headers which are less
      frequently included.
      
      	* tree.h: Include fold-const.h.
      	(aggregate_value_p): Moved to function.h.
      	(alloca_call_p): Moved to calls.h.
      	(allocate_struct_function): Moved to function.h.
      	(apply_tm_attr): Moved to attribs.h.
      	(array_at_struct_end_p): Moved to expr.h.
      	(array_ref_element_size): Moved to tree-dfa.h.
      	(array_ref_low_bound): Moved to tree-dfa.h.
      	(array_ref_up_bound): Moved to tree.h.
      	(assemble_alias): Moved to cgraph.h.
      	(bit_from_pos): Moved to stor-layout.h.
      	(build_addr): Moved to tree-nested.h.
      	(build_duplicate_type): Moved to tree-inline.h.
      	(build_fold_addr_expr): Moved to fold-const.h.
      	(build_fold_addr_expr_with_type): Moved to fold-const.h.
      	(build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
      	(build_fold_indirect_ref): Moved to fold-const.h.
      	(build_fold_indirect_ref_loc): Moved to fold-const.h.
      	(build_personality_function): Moved to tree.h.
      	(build_range_check): Moved to fold-const.h.
      	(build_simple_mem_ref): Moved to fold-const.h.
      	(build_simple_mem_ref_loc): Moved to fold-const.h.
      	(build_tm_abort_call): Moved to trans-mem.h.
      	(byte_from_pos): Moved to stor-layout.h.
      	(call_expr_flags): Moved to calls.h.
      	(can_move_by_pieces): Moved to expr.h.
      	(categorize_ctor_elements): Moved to expr.h.
      	(change_decl_assembler_name): Moved to gcc-symtab.h.
      	(combine_comparisons): Moved to fold-const.h.
      	(complete_ctor_at_level_p): Moved to tree.h.
      	(component_ref_field_offset): Moved to tree-dfa.h.
      	(compute_builtin_object_size): Moved to tree-object-size.h.
      	(compute_record_mode): Moved to stor-layout.h.
      	(constant_boolean_node): Moved to fold-const.h.
      	(constructor_static_from_elts_p): Moved to varasm.h.
      	(cxx11_attribute_p): Moved to attribs.h.
      	(debug_body): Moved to print-tree.h.
      	(debug_find_tree): Moved to tree-inline.h.
      	(debug_fold_checksum): Moved to fold-const.h.
      	(debug_head): Moved to print-tree.h.
      	(debug_head): Moved to print-tree.h.
      	(debug_raw): Moved to print-tree.h.
      	(debug_tree): Moved to print-tree.h.
      	(debug_vec_tree): Moved to print-tree.h.
      	(debug_verbose): Moved to print-tree.h.
      	(debug_verbose): Moved to print-tree.h.
      	(decl_attributes): Moved to attribs.h.
      	(decl_binds_to_current_def_p): Moved to varasm.h.
      	(decl_default_tls_model): Moved to varasm.h.
      	(decl_replaceable_p): Moved to varasm.h.
      	(div_if_zero_remainder): Moved to fold-const.h.
      	(double_int mem_ref_offset): Moved to fold-const.h.
      	(dump_addr): Moved to print-tree.h.
      	(element_precision): Moved to machmode.h.
      	(expand_dummy_function_end): Moved to function.h.
      	(expand_function_end): Moved to function.h.
      	(expand_function_start): Moved to function.h.
      	(expand_label): Moved to stmt.h.
      	(expr_first): Moved to tree-iterator.h.
      	(expr_last): Moved to tree-iterator.h.
      	(finalize_size_functions): Moved to stor-layout.h.
      	(finish_builtin_struct): Moved to stor-layout.h.
      	(finish_record_layout): Moved to stor-layout.h.
      	(fixup_signed_type): Moved to stor-layout.h.
      	(fixup_unsigned_type): Moved to stor-layout.h.
      	(flags_from_decl_or_type): Moved to calls.h.
      	(fold): Moved to fold-const.h.
      	(fold_abs_const): Moved to fold-const.h.
      	(fold_binary): Moved to fold-const.h.
      	(fold_binary_loc): Moved to fold-const.h.
      	(fold_binary_to_constant): Moved to fold-const.h.
      	(fold_build1): Moved to fold-const.h.
      	(fold_build1_initializer_loc): Moved to fold-const.h.
      	(fold_build1_loc): Moved to fold-const.h.
      	(fold_build1_stat_loc): Moved to fold-const.h.
      	(fold_build2): Moved to fold-const.h.
      	(fold_build2_initializer_loc): Moved to fold-const.h.
      	(fold_build2_loc): Moved to fold-const.h.
      	(fold_build2_stat_loc): Moved to fold-const.h.
      	(fold_build3): Moved to fold-const.h.
      	(fold_build3_loc): Moved to fold-const.h.
      	(fold_build3_stat_loc): Moved to fold-const.h.
      	(fold_build_call_array): Moved to fold-const.h.
      	(fold_build_call_array_initializer): Moved to fold-const.h.
      	(fold_build_call_array_initializer_loc): Moved to fold-const.h.
      	(fold_build_call_array_loc): Moved to fold-const.h.
      	(fold_build_cleanup_point_expr): Moved to fold-const.h.
      	(fold_convert): Moved to fold-const.h.
      	(fold_convert_loc): Moved to fold-const.h.
      	(fold_convertible_p): Moved to fold-const.h.
      	(fold_defer_overflow_warnings): Moved to fold-const.h.
      	(fold_deferring_overflow_warnings_p): Moved to fold-const.h.
      	(fold_fma): Moved to fold-const.h.
      	(fold_ignored_result): Moved to fold-const.h.
      	(fold_indirect_ref): Moved to fold-const.h.
      	(fold_indirect_ref_1): Moved to fold-const.h.
      	(fold_indirect_ref_loc): Moved to fold-const.h.
      	(fold_read_from_constant_string): Moved to fold-const.h.
      	(fold_real_zero_addition_p): Moved to fold-const.h.
      	(fold_single_bit_test): Moved to fold-const.h.
      	(fold_strip_sign_ops): Moved to fold-const.h.
      	(fold_ternary): Moved to fold-const.h.
      	(fold_ternary_loc): Moved to fold-const.h.
      	(fold_unary): Moved to tree-data-ref.h.
      	(fold_unary_ignore_overflow): Moved to fold-const.h.
      	(fold_unary_ignore_overflow_loc): Moved to fold-const.h.
      	(fold_unary_loc): Moved to fold-const.h.
      	(fold_unary_to_constant): Moved to fold-const.h.
      	(fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
      	(fold_undefer_overflow_warnings): Moved to fold-const.h.
      	(folding_initializer): Moved to fold-const.h.
      	(free_temp_slots): Moved to function.h.
      	(generate_setjmp_warnings): Moved to function.h.
      	(get_attribute_name): Moved to attribs.h.
      	(get_identifier): Moved to stringpool.h.
      	(get_identifier_with_length): Moved to stringpool.h.
      	(get_inner_reference): Moved to tree.h.
      	(gimple_alloca_call_p): Moved to calls.h.
      	(gimplify_parameters): Moved to function.h.
      	(highest_pow2_factor): Moved to expr.h.
      	(indent_to): Moved to print-tree.h.
      	(init_attributes): Moved to attribs.h.
      	(init_dummy_function_start): Moved to function.h.
      	(init_function_start): Moved to function.h.
      	(init_inline_once): Moved to tree-inline.h.
      	(init_object_sizes): Moved to tree-object-size.h.
      	(init_temp_slots): Moved to function.h.
      	(init_tree_optimization_optabs): Moved to optabs.h.
      	(initialize_sizetypes): Moved to stor-layout.h.
      	(initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
      	(initializer_constant_valid_p): Moved to varasm.h.
      	(int_const_binop): Moved to fold-const.h.
      	(internal_reference_types): Moved to stor-layout.h.
      	(invert_tree_comparison): Moved to fold-const.h.
      	(invert_truthvalue): Moved to fold-const.h.
      	(invert_truthvalue_loc): Moved to fold-const.h.
      	(is_tm_ending_fndecl): Moved to trans-mem.h.
      	(is_tm_may_cancel_outer): Moved to trans-mem.h.
      	(is_tm_pure): Moved to trans-mem.h.
      	(is_tm_safe): Moved to trans-mem.h.
      	(layout_decl): Moved to stor-layout.h.
      	(layout_type): Moved to stor-layout.h.
      	(lookup_attribute_spec): Moved to attribs.h.
      	(make_accum_type): Moved to stor-layout.h.
      	(make_decl_one_only): Moved to varasm.h.
      	(make_decl_rtl): Moved to tree.h.
      	(make_decl_rtl_for_debug): Moved to varasm.h.
      	(make_fract_type): Moved to stor-layout.h.
      	(make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
      	(make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
      	(make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
      	(make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
      	(make_or_reuse_signed_accum_type): Moved to stor-layout.h.
      	(make_or_reuse_signed_fract_type): Moved to stor-layout.h.
      	(make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
      	(make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
      	(make_range): Moved to fold-const.h.
      	(make_range_step): Moved to fold-const.h.
      	(make_sat_signed_accum_type): Moved to stor-layout.h.
      	(make_sat_signed_fract_type): Moved to stor-layout.h.
      	(make_sat_unsigned_accum_type): Moved to stor-layout.h.
      	(make_sat_unsigned_fract_type): Moved to stor-layout.h.
      	(make_signed_accum_type): Moved to stor-layout.h.
      	(make_signed_fract_type): Moved to stor-layout.h.
      	(make_signed_type): Moved to stor-layout.h.
      	(make_unsigned_accum_type): Moved to stor-layout.h.
      	(make_unsigned_fract_type): Moved to stor-layout.h.
      	(make_unsigned_type): Moved to stor-layout.h.
      	(mark_decl_referenced): Moved to varasm.h.
      	(mark_referenced): Moved to varasm.h.
      	(may_negate_without_overflow_p): Moved to fold-const.h.
      	(maybe_get_identifier): Moved to stringpool.h.
      	(merge_ranges): Moved to fold-const.h.
      	(merge_weak): Moved to varasm.h.
      	(mode_for_size_tree): Moved to stor-layout.h.
      	(multiple_of_p): Moved to fold-const.h.
      	(must_pass_in_stack_var_size): Moved to calls.h.
      	(must_pass_in_stack_var_size_or_pad): Moved to calls.h.
      	(native_encode_expr): Moved to fold-const.h.
      	(native_interpret_expr): Moved to fold-const.h.
      	(non_lvalue): Moved to fold-const.h.
      	(non_lvalue_loc): Moved to fold-const.h.
      	(normalize_offset): Moved to stor-layout.h.
      	(normalize_rli): Moved to stor-layout.h.
      	(notice_global_symbol): Moved to varasm.h.
      	(omit_one_operand): Moved to fold-const.h.
      	(omit_one_operand_loc): Moved to fold-const.h.
      	(omit_two_operands): Moved to fold-const.h.
      	(omit_two_operands_loc): Moved to fold-const.h.
      	(operand_equal_p): Moved to tree-data-ref.h.
      	(parse_input_constraint): Moved to stmt.h.
      	(parse_output_constraint): Moved to stmt.h.
      	(place_field): Moved to stor-layout.h.
      	(pop_function_context): Moved to function.h.
      	(pop_temp_slots): Moved to function.h.
      	(pos_from_bit): Moved to stor-layout.h.
      	(preserve_temp_slots): Moved to function.h.
      	(print_node): Moved to print-tree.h.
      	(print_node_brief): Moved to print-tree.h.
      	(print_rtl): Moved to rtl.h.
      	(process_pending_assemble_externals): Moved to varasm.h.
      	(ptr_difference_const): Moved to fold-const.h.
      	(push_function_context): Moved to function.h.
      	(push_struct_function): Moved to function.h.
      	(push_temp_slots): Moved to function.h.
      	(record_tm_replacement): Moved to trans-mem.h.
      	(relayout_decl): Moved to stor-layout.h.
      	(resolve_asm_operand_names): Moved to stmt.h.
      	(resolve_unique_section): Moved to varasm.h.
      	(rli_size_so_far): Moved to stor-layout.h.
      	(rli_size_unit_so_far): Moved to stor-layout.h.
      	(round_down): Moved to fold-const.h.
      	(round_down_loc): Moved to fold-const.h.
      	(round_up): Moved to fold-const.h.
      	(round_up_loc): Moved to fold-const.h.
      	(set_decl_incoming_rtl): Moved to emit-rtl.h.
      	(set_decl_rtl): Moved to tree.h.
      	(set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
      	(set_user_assembler_name): Moved to varasm.h.
      	(setjmp_call_p): Moved to calls.h.
      	(size_binop): Moved to fold-const.h.
      	(size_binop_loc): Moved to fold-const.h.
      	(size_diffop): Moved to fold-const.h.
      	(size_diffop_loc): Moved to fold-const.h.
      	(size_int_kind): Moved to fold-const.h.
      	(stack_protect_epilogue): Moved to function.h.
      	(start_record_layout): Moved to stor-layout.h.
      	(supports_one_only): Moved to varasm.h.
      	(swap_tree_comparison): Moved to fold-const.h.
      	(tm_malloc_replacement): Moved to trans-mem.h.
      	(tree build_fold_addr_expr_loc): Moved to fold-const.h.
      	(tree build_invariant_address): Moved to fold-const.h.
      	(tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
      	(tree_binary_nonzero_warnv_p): Moved to fold-const.h.
      	(tree_call_nonnegative_warnv_p): Moved to fold-const.h.
      	(tree_expr_nonnegative_p): Moved to fold-const.h.
      	(tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
      	(tree_output_constant_def): Moved to varasm.h.
      	(tree_overlaps_hard_reg_set): Moved to stmt.h.
      	(tree_single_nonnegative_warnv_p): Moved to fold-const.h.
      	(tree_single_nonzero_warnv_p): Moved to fold-const.h.
      	(tree_swap_operands_p): Moved to fold-const.h.
      	(tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
      	(tree_unary_nonzero_warnv_p): Moved to fold-const.h.
      	(update_alignment_for_field): Moved to stor-layout.h.
      	(use_register_for_decl): Moved to function.h.
      	(variable_size): Moved to rtl.h.
      	(vector_type_mode): Moved to stor-layout.h.
      	* cgraph.h: Corresponding changes.
      	* emit-rtl.h: Corresponding changes.
      	* expr.h: Corresponding changes.
      	* function.h: Corresponding changes.
      	* optabs.h: Corresponding changes.
      	* trans-mem.h: Corresponding changes.
      	Protect against multiple inclusion.
      	* tree-inline.h: Corresponding changes.
      	* tree-iterator.h: Corresponding changes.
      	* tree-dfa.h: Include expr.h.
      	* tree-ssanames.h: Include stringpool.h.
      	* attribs.h: New file.
      	* calls.h: New file.
      	* fold-const.h: New file.
      	* gcc-symtab.h: New file.
      	* print-rtl.h: New file.
      	* print-tree.h: New file.
      	* stmt.h: New file.
      	* stor-layout.h: New file.
      	* strinpool.h: New file.
      	* tree-nested.h: New file
      	* tree-object-size.h: New file.
      	* varasm.h: New file.
      	* Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
      
      	* alias.c: Include varasm.h.
      	Include expr.h.
      	* asan.c: Include calls.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	* attribs.c: Include stringpool.h.
      	Include attribs.h.
      	Include stor-layout.h.
      	* builtins.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include calls.h.
      	Include varasm.h.
      	Include tree-object-size.h.
      	* calls.c: Include stor-layout.h.
      	Include varasm.h.
      	Include stringpool.h.
      	Include attribs.h.
      	* cfgexpand.c: Include stringpool.h.
      	Include varasm.h.
      	Include stor-layout.h.
      	Include stmt.h.
      	Include print-tree.h.
      	* cgraph.c: Include varasm.h.
      	Include calls.h.
      	Include print-tree.h.
      	* cgraphclones.c: Include stringpool.h.
      	Include function.h.
      	Include emit-rtl.h.
      	Move inclusion of rtl.h earlier in the file.
      	* cgraphunit.c: Include varasm.h.
      	Include stor-layout.h.
      	Include stringpool.h.
      	* cilk-common.c: Include stringpool.h.
      	Include stor-layout.h.
      	* combine.c: Include stor-layout.h.
      	* config/aarch64/aarch64-builtins.c: Include stor-layout.h.
      	Include stringpool.h.
      	Include calls.h.
      	* config/aarch64/aarch64.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include calls.h.
      	Include varasm.h.
      	* config/alpha/alpha.c: Include stor-layout.h.
      	Include calls.h.
      	Include varasm.h.
      	* config/arc/arc.c: Include varasm.h.
      	Include stor-layout.h.
      	Include stringpool.h.
      	Include calls.h.
      	* config/arm/arm.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include calls.h.
      	Include varasm.h.
      	* config/avr/avr-c.c: Include stor-layout.h.
      	* config/avr/avr-log.c: Include print-tree.h.
      	* config/avr/avr.c: Include print-tree.h.
      	Include calls.h.
      	Include stor-layout.h.
      	Include stringpool.h.
      	* config/bfin/bfin.c: Include varasm.h.
      	Include calls.h.
      	* config/c6x/c6x.c: Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	Include stringpool.h.
      	* config/cr16/cr16.c: Include stor-layout.h.
      	Include calls.h.
      	* config/cris/cris.c: Include varasm.h.
      	Include stor-layout.h.
      	Include calls.h.
      	Include stmt.h.
      	* config/darwin.c: Include stringpool.h.
      	Include varasm.h.
      	Include stor-layout.h.
      	* config/epiphany/epiphany.c: Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	Include stringpool.h.
      	* config/fr30/fr30.c: Include stor-layout.h.
      	Include varasm.h.
      	* config/frv/frv.c: Include varasm.h.
      	Include stor-layout.h.
      	Include stringpool.h.
      	* config/h8300/h8300.c: Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	Include stringpool.h.
      	* config/i386/i386.c: Include stringpool.h.
      	Include attribs.h.
      	Include calls.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	* config/i386/winnt-cxx.c: Include stringpool.h.
      	Include attribs.h.
      	* config/i386/winnt.c: Include stringpool.h.
      	Include varasm.h.
      	* config/ia64/ia64-c.c: Include stringpool.h.
      	* config/ia64/ia64.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include calls.h.
      	Include varasm.h.
      	* config/iq2000/iq2000.c: Include stor-layout.h.
      	Include calls.h.
      	Include varasm.h.
      	* config/lm32/lm32.c: Include calls.h.
      	* config/m32c/m32c.c: Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	* config/m32r/m32r.c: Include stor-layout.h.
      	Include varasm.h.
      	Include stringpool.h.
      	Include calls.h.
      	* config/m68k/m68k.c: Include calls.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	* config/mcore/mcore.c: Include stor-layout.h.
      	Include varasm.h.
      	Include stringpool.h.
      	Include calls.h.
      	* config/mep/mep.c: Include varasm.h.
      	Include calls.h.
      	Include stringpool.h.
      	Include stor-layout.h.
      	* config/microblaze/microblaze.c: Include varasm.h.
      	Include stor-layout.h.
      	Include calls.h.
      	* config/mips/mips.c: Include varasm.h.
      	Include stringpool.h.
      	Include stor-layout.h.
      	Include calls.h.
      	* config/mmix/mmix.c: Include varasm.h.
      	Include stor-layout.h.
      	Include calls.h.
      	* config/mn10300/mn10300.c: Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	* config/moxie/moxie.c: Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	* config/msp430/msp430.c: Include stor-layout.h.
      	Include calls.h.
      	* config/nds32/nds32.c: Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	* config/pa/pa.c: Include stor-layout.h.
      	Include stringpool.h.
      	Include varasm.h.
      	Include calls.h.
      	* config/pdp11/pdp11.c: Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	* config/picochip/picochip.c: Include calls.h.
      	Include stor-layout.h.
      	Include stringpool.h.
      	Include varasm.h.
      	* config/rl78/rl78.c: Include varasm.h.
      	Include stor-layout.h.
      	Include calls.h.
      	* config/rs6000/rs6000-c.c: Include stor-layout.h.
      	Include stringpool.h.
      	* config/rs6000/rs6000.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include calls.h.
      	Include print-tree.h.
      	Include varasm.h.
      	* config/rx/rx.c: Include varasm.h.
      	Include stor-layout.h.
      	Include calls.h.
      	* config/s390/s390.c: Include print-tree.h.
      	Include stringpool.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	* config/score/score.c: Include stringpool.h.
      	Include calls.h.
      	Include varasm.h.
      	Include stor-layout.h.
      	* config/sh/sh-c.c: Include stringpool.h.
      	Include attribs.h.h.
      	* config/sh/sh.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include calls.h.
      	Include varasm.h.
      	* config/sol2-c.c: Include stringpool.h.
      	Include attribs.h.
      	* config/sol2-cxx.c: Include stringpool.h.
      	* config/sol2.c: Include stringpool.h.
      	Include varasm.h.
      	* config/sparc/sparc.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include calls.h.
      	Include varasm.h.
      	* config/spu/spu-c.c: Include stringpool.h.
      	* config/spu/spu.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include calls.h.
      	Include varasm.h.
      	* config/stormy16/stormy16.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	* config/tilegx/tilegx.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	* config/tilepro/tilepro.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	* config/v850/v850-c.c: Include stringpool.h.
      	Include attribs.h.
      	* config/v850/v850.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	Include calls.h.
      	* config/vax/vax.c: Include calls.h.
      	Include varasm.h.
      	* config/vms/vms.c: Include stringpool.h.
      	* config/vxworks.c: Include stringpool.h.
      	* config/xtensa/xtensa.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include calls.h.
      	Include varasm.h.
      	* convert.c: Include stor-layout.h.
      	* coverage.c: Include stringpool.h.
      	Include stor-layout.h.
      	* dbxout.c: Include varasm.h.
      	Include stor-layout.h.
      	* dojump.c: Include stor-layout.h.
      	* dse.c: Include stor-layout.h.
      	* dwarf2asm.c: Include stringpool.h.
      	Include varasm.h.
      	* dwarf2cfi.c: Include stor-layout.h.
      	* dwarf2out.c: Include rtl.h.
      	Include stringpool.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	Include function.h.
      	Include emit-rtl.h.
      	Move inclusion of rtl.h earlier in the file.
      	* emit-rtl.c: Include varasm.h.
      	* except.c: Include stringpool.h.
      	Include stor-layout.h.
      	* explow.c: Include stor-layout.h.
      	* expmed.c: Include stor-layout.h.
      	* expr.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include attribs.h.
      	Include varasm.h.
      	* final.c: Include varasm.h.
      	* fold-const.c: Include stor-layout.h.
      	Include calls.h.
      	Include tree-iterator.h.
      	* function.c: Include stor-layout.h.
      	Include varasm.h.
      	Include stringpool.h.
      	* genattrtab.c (write_header): Emit includes for varasm.h,
      	stor-layout.h and calls.h.
      	* genautomata.c (main): Likewise.
      	* genemit.c: Likewise.
      	* genopinit.c: Likewise.
      	* genoutput.c (output_prologue): Likewise.
      	* genpeep.c: Likewise.
      	* genpreds.c (write_insn_preds_c): Likewise.
      	* gengtype.c (open_base_files): Add stringpool.h.
      	* gimple-expr.c: Include stringpool.h.
      	Include stor-layout.h.
      	* gimple-fold.c: Include stringpool.h.
      	Include expr.h.
      	Include stmt.h.
      	Include stor-layout.h.
      	* gimple-low.c: Include tree-nested.h.
      	Include calls.h.
      	* gimple-pretty-print.c: Include stringpool.h.
      	* gimple-ssa-strength-reduction.c: Include stor-layout.h.
      	Include expr.h.
      	* gimple-walk.c: Include stmt.h.
      	* gimple.c: Include calls.h.
      	Include stmt.h.
      	Include stor-layout.h.
      	* gimplify.c: Include stringpool.h.
      	Include calls.h.
      	Include varasm.h.
      	Include stor-layout.h.
      	Include stmt.h.
      	Include print-tree.h.
      	Include expr.h.
      	* gimplify-me.c: Include stmt.h
      	Include stor-layout.h
      	* internal-fn.c: Include stor-layout.h.
      	* ipa-devirt.c: Include print-tree.h.
      	Include calls.h.
      	* ipa-inline-analysis.c: Include stor-layout.h.
      	Include stringpool.h.
      	Include print-tree.h.
      	* ipa-inline.c: Include trans-mem.h.
      	Include calls.h.
      	* ipa-prop.c: Include expr.h.
      	Include stor-layout.h.
      	Include print-tree.h.
      	* ipa-pure-const.c: Include print-tree.h.
      	Include calls.h.
      	* ipa-reference.c: Include calls.h.
      	* ipa-split.c: Include stringpool.h.
      	Include expr.h.
      	Include calls.h.
      	* ipa.c: Include calls.h.
      	Include stringpool.h.
      	* langhooks.c: Include stringpool.h.
      	Include attribs.h.
      	* lto-cgraph.c: Include stringpool.h.
      	* lto-streamer-in.c: Include stringpool.h.
      	* lto-streamer-out.c: Include stor-layout.h.
      	Include stringpool.h.
      	* omp-low.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include expr.h.
      	* optabs.c: Include stor-layout.h.
      	Include stringpool.h.
      	Include varasm.h.
      	* passes.c: Include varasm.h.
      	* predict.c: Include calls.h.
      	* print-rtl.c: Include print-tree.h.
      	* print-tree.c: Include varasm.h.
      	Include print-rtl.h.
      	Include stor-layout.h.
      	* realmpfr.c: Include stor-layout.h.
      	* reg-stack.c: Include varasm.h.
      	* sdbout.c: Include varasm.h.
      	Include stor-layout.h.
      	* simplify-rtx.c: Include varasm.h.
      	* stmt.c: Include varasm.h.
      	Include stor-layout.h.
      	* stor-layout.c: Include stor-layout.h.
      	Include stringpool.h.
      	Include varasm.h.
      	Include print-tree.h.
      	* symtab.c: Include rtl.h.
      	Include print-tree.h.
      	Include varasm.h.
      	Include function.h.
      	Include emit-rtl.h.
      	* targhooks.c: Include stor-layout.h.
      	Include varasm.h.
      	* toplev.c: Include varasm.h.
      	Include tree-inline.h.
      	* trans-mem.c: Include calls.h.
      	Include function.h.
      	Include rtl.h.
      	Include emit-rtl.h.
      	* tree-affine.c: Include expr.h.
      	* tree-browser.c: Include print-tree.h.
      	* tree-call-cdce.c: Include stor-layout.h.
      	* tree-cfg.c: Include trans-mem.h.
      	Include stor-layout.h.
      	Include print-tree.h.
      	* tree-complex.c: Include stor-layout.h.
      	* tree-data-ref.c: Include expr.h.
      	* tree-dfa.c: Include stor-layout.h.
      	* tree-eh.c: Include expr.h.
      	Include calls.h.
      	* tree-emutls.c: Include stor-layout.h.
      	Include varasm.h.
      	* tree-if-conv.c: Include stor-layout.h.
      	* tree-inline.c: Include stor-layout.h.
      	Include calls.h.
      	* tree-loop-distribution.c: Include stor-layout.h.
      	* tree-nested.c: Include stringpool.h.
      	Include stor-layout.h.
      	* tree-object-size.c: Include tree-object-size.h.
      	* tree-outof-ssa.c: Include stor-layout.h.
      	* tree-parloops.c: Include stor-layout.h.
      	Include tree-nested.h.
      	* tree-pretty-print.c: Include stor-layout.h.
      	Include expr.h.
      	* tree-profile.c: Include varasm.h.
      	Include tree-nested.h.
      	* tree-scalar-evolution.c: Include expr.h.
      	* tree-sra.c: Include stor-layout.h.
      	* tree-ssa-address.c: Include stor-layout.h.
      	* tree-ssa-ccp.c: Include stor-layout.h.
      	* tree-ssa-dce.c: Include calls.h.
      	* tree-ssa-dom.c: Include stor-layout.h.
      	* tree-ssa-forwprop.c: Include stor-layout.h.
      	* tree-ssa-ifcombine.c: Include stor-layout.h.
      	* tree-ssa-loop-ivopts.c: Include stor-layout.h.
      	* tree-ssa-loop-niter.c: Include calls.h.
      	Include expr.h.
      	* tree-ssa-loop-prefetch.c: Include stor-layout.h.
      	* tree-ssa-math-opts.c: Include stor-layout.h.
      	* tree-ssa-operands.c: Include stmt.h.
      	Include print-tree.h.
      	* tree-ssa-phiopt.c: Include stor-layout.h.
      	* tree-ssa-reassoc.c: Include stor-layout.h.
      	* tree-ssa-sccvn.c: Include stor-layout.h.
      	* tree-ssa-sink.c: Include stor-layout.h.
      	* tree-ssa-strlen.c: Include stor-layout.h.
      	* tree-ssa-structalias.c: Include stor-layout.h.
      	Include stmt.h.
      	* tree-ssa-tail-merge.c: Include stor-layout.h.
      	Include trans-mem.h.
      	* tree-ssa-uncprop.c: Include stor-layout.h.
      	* tree-ssa.c: Include stor-layout.h.
      	* tree-ssanames.c: Include stor-layout.h.
      	* tree-streamer-in.c: Include stringpool.h.
      	* tree-streamer-out.c: Include stor-layout.h.
      	* tree-switch-conversion.c: Include varasm.h.
      	Include stor-layout.h.
      	* tree-tailcall.c: Include stor-layout.h.
      	* tree-vect-data-refs.c: Include stor-layout.h.
      	* tree-vect-generic.c: Include stor-layout.h.
      	* tree-vect-loop.c: Include stor-layout.h.
      	* tree-vect-patterns.c: Include stor-layout.h.
      	* tree-vect-slp.c: Include stor-layout.h.
      	* tree-vect-stmts.c: Include stor-layout.h.
      	* tree-vectorizer.c: Include stor-layout.h.
      	* tree-vrp.c: Include stor-layout.h.
      	Include calls.h.
      	* tree.c: Include stor-layout.h.
      	Include calls.h.
      	Include attribs.h.
      	Include varasm.h.
      	* tsan.c: Include expr.h.
      	* ubsan.c: Include stor-layout.h.
      	Include stringpool.h.
      	* value-prof.c: Include tree-nested.h.
      	Include calls.h.
      	* var-tracking.c: Include varasm.h.
      	Include stor-layout.h.
      	* varasm.c: Include stor-layout.h.
      	Include stringpool.h.
      	Include gcc-symtab.h.
      	Include varasm.h.
      	* varpool.c: Include varasm.h.
      	* vmsdbgout.c: Include varasm.h.
      	* xcoffout.c: Include varasm.h.
      
      ada/ChangeLog
      
      	* gcc-interface/decl.c: Include stringpool.h
      	Include stor-layout.h
      	* gcc-interface/misc.c: Include stor-layout.h
      	Include print-tree.h
      	* gcc-interface/trans.c: Include stringpool.h
      	Include stor-layout.h
      	Include stmt.h
      	Include varasm.h
      	* gcc-interface/utils.c: Include stringpool.h
      	Include stor-layout.h
      	Include attribs.h
      	Include varasm.h
      	* gcc-interface/utils2.c: Include stringpool.h
      	Include stor-layout.h
      	Include attribs.h
      	Include varasm.h
      
      c-family/ChangeLog
      
      	* c-common.c: Include fold-const.h.
      	Include stor-layout.h.
      	Include calls.h.
      	Include stringpool.h.
      	Include attribs.h.
      	Include varasm.h.
      	Include trans-mem.h.
      	* c-cppbuiltin.c: Include stor-layout.h.
      	Include stringpool.h.
      	* c-format.c: Include stringpool.h.
      	* c-lex.c: Include stringpool.h.
      	Include stor-layout.h.
      	* c-pragma.c: Include stringpool.h.
      	Include attribs.h.
      	Include varasm.h.
      	Include gcc-symtab.h.
      	* c-pretty-print.c: Include stor-layout.h.
      	Include attribs.h.
      	* cilk.c: Include stringpool.h.
      	Include calls.h.
      
      c/ChangeLog
      
      	* c-decl.c: Include print-tree.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	Include attribs.h.
      	Include stringpool.h.
      	* c-lang.c: Include fold-const.h.
      	* c-parser.c: Include stringpool.h.
      	Include attribs.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	Include trans-mem.h.
      	* c-typeck.c: Include stor-layout.h.
      	Include trans-mem.h.
      	Include varasm.h.
      	Include stmt.h.
      
      cp/ChangeLog
      
      	* call.c: Include stor-layout.h.
      	Include trans-mem.h.
      	Include stringpool.h.
      	* class.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include attribs.h.
      	* cp-gimplify.c: Include stor-layout.h.
      	* cvt.c: Include stor-layout.h.
      	* decl.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	Include attribs.h.
      	Include calls.h.
      	* decl2.c: Include stringpool.h.
      	Include varasm.h.
      	Include attribs.h.
      	Include stor-layout.h.
      	Include calls.h.
      	* error.c: Include stringpool.h.
      	* except.c: Include stringpool.h.
      	Include trans-mem.h.
      	Include attribs.h.
      	* init.c: Include stringpool.h.
      	Include varasm.h.
      	* lambda.c: Include stringpool.h.
      	* lex.c: Include stringpool.h.
      	* mangle.c: Include stor-layout.h.
      	Include stringpool.h.
      	* method.c: Include stringpool.h.
      	Include varasm.h.
      	* name-lookup.c: Include stringpool.h.
      	Include print-tree.h.
      	Include attribs.h.
      	* optimize.c: Include stringpool.h.
      	* parser.c: Include print-tree.h.
      	Include stringpool.h.
      	Include attribs.h.
      	Include trans-mem.h.
      	* pt.c: Include stringpool.h.
      	Include varasm.h.
      	Include attribs.h.
      	Include stor-layout.h.
      	* ptree.c: Include print-tree.h.
      	* repo.c: Include stringpool.h.
      	* rtti.c: Include stringpool.h.
      	Include stor-layout.h.
      	* semantics.c: Include stmt.h.
      	Include varasm.h.
      	Include stor-layout.h.
      	Include stringpool.h.
      	* tree.c: Include stor-layout.h.
      	Include print-tree.h.
      	Include tree-iterator.h.
      	* typeck.c: Include stor-layout.h.
      	Include varasm.h.
      	* typeck2.c: Include stor-layout.h.
      	Include varasm.h.
      	* vtable-class-hierarchy.c: Include stringpool.h.
      	Include stor-layout.h.
      
      fortran/ChangeLog
      
      	* decl.c: Include stringpool.h.
      	* iresolve.c: Include stringpool.h.
      	* match.c: Include stringpool.h.
      	* module.c: Include stringpool.h.
      	* target-memory.c: Include stor-layout.h.
      	* trans-common.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	* trans-const.c: Include stor-layout.h.
      	* trans-decl.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	Include attribs.h.
      	* trans-expr.c: Include stringpool.h.
      	* trans-intrinsic.c: Include stringpool.h.
      	Include tree-nested.h.
      	Include stor-layout.h.
      	* trans-io.c: Include stringpool.h.
      	Include stor-layout.h.
      	* trans-openmp.c: Include stringpool.h.
      	* trans-stmt.c: Include stringpool.h.
      	* trans-types.c: Include stor-layout.h.
      	Include stringpool.h.
      	* trans.c: Include stringpool.h.
      
      go/ChangeLog
      
      	* go-backend.c: Include stor-layout.h.
      	* go-gcc.cc: Include stringpool.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	* go-lang.c: Include stor-layout.h.
      
      java/ChangeLog
      
      	* builtins.c: Include stor-layout.h.
      	Include stringpool.h.
      	* class.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include varasm.h.
      	* constants.c: Include stringpool.h.
      	Include stor-layout.h.
      	* decl.c: Include stor-layout.h.
      	Include stringpool.h.
      	Include varasm.h.
      	* except.c: Include stringpool.h.
      	Include stor-layout.h.
      	* expr.c: Include stringpool.h.
      	Include stor-layout.h.
      	* jcf-parse.c: Include stringpool.h.
      	* mangle.c: Include stringpool.h.
      	* resource.c: Include stringpool.h.
      	Include stor-layout.h.
      	* typeck.c: Include stor-layout.h.
      	Include stringpool.h.
      	* verify-glue.c: Include stringpool.h.
      
      lto/ChangeLog
      	* lto-lang.c: Include stringpool.h.
      	Include stor-layout.h.
      	* lto-partition.c: Include gcc-symtab.h.
      	* lto.c: Include stor-layout.h.
      
      objc/ChangeLog
      	* objc-act.c: Include stringpool.h.
      	Include stor-layout.h.
      	Include attribs.h.
      	* objc-encoding.c: Include stringpool.h.
      	Include stor-layout.h.
      	* objc-gnu-runtime-abi-01.c: Include stringpool.h.
      	* objc-next-runtime-abi-01.c:
      	Include stringpool.h.
      	* objc-next-runtime-abi-02.c: Include stringpool.h.
      	* objc-runtime-shared-support.c: Include stringpool.h.
      
      testsuite/ChangeLog
      
      	* gcc.dg/plugin/selfassign.c: Include stringpool.h.
      	* gcc.dg/plugin/start_unit_plugin.c: Likewise.
      
      From-SVN: r205023
      Diego Novillo committed
  11. 29 Oct, 2013 1 commit
    • Autogenerated fixes of "->symbol." to "->" · 67348ccc
      This is the autogenerated part of the conversion of the symtable types
      to a C++ class hierarchy.
      
      gcc/
      
      	Patch autogenerated by refactor_symtab.py from
      	https://github.com/davidmalcolm/gcc-refactoring-scripts
      	revision 58bb219cc090b2f4516a9297d868c245495ee622
      
      	* asan.c (asan_finish_file): Update for conversion of symtab types to
      	a true class hierarchy.
      	* cfgexpand.c (estimated_stack_frame_size): Likewise.
      	* cgraph.c (cgraph_get_body): Likewise.
      	(cgraph_get_create_real_symbol_node): Likewise.
      	(verify_cgraph_node): Likewise.
      	(verify_edge_corresponds_to_fndecl): Likewise.
      	(verify_edge_count_and_frequency): Likewise.
      	(cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
      	(cgraph_can_remove_if_no_direct_calls_p): Likewise.
      	(cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
      	(cgraph_node_cannot_return): Likewise.
      	(cgraph_set_pure_flag_1): Likewise.
      	(cgraph_set_const_flag_1): Likewise.
      	(cgraph_set_nothrow_flag_1): Likewise.
      	(cgraph_make_node_local_1): Likewise.
      	(cgraph_for_node_and_aliases): Likewise.
      	(cgraph_for_node_thunks_and_aliases): Likewise.
      	(cgraph_node_can_be_local_p): Likewise.
      	(cgraph_node_cannot_be_local_p_1): Likewise.
      	(cgraph_function_body_availability): Likewise.
      	(dump_cgraph_node): Likewise.
      	(cgraph_rtl_info): Likewise.
      	(cgraph_mark_address_taken_node): Likewise.
      	(cgraph_remove_node): Likewise.
      	(cgraph_release_function_body): Likewise.
      	(cgraph_update_edges_for_call_stmt_node): Likewise.
      	(cgraph_redirect_edge_call_stmt_to_callee): Likewise.
      	(cgraph_make_edge_direct): Likewise.
      	(cgraph_resolve_speculation): Likewise.
      	(cgraph_speculative_call_info): Likewise.
      	(cgraph_turn_edge_to_speculative): Likewise.
      	(cgraph_create_edge_1): Likewise.
      	(cgraph_set_call_stmt): Likewise.
      	(cgraph_node_for_asm): Likewise.
      	(cgraph_add_thunk): Likewise.
      	(cgraph_same_body_alias): Likewise.
      	(cgraph_create_function_alias): Likewise.
      	(cgraph_create_node): Likewise.
      	(cgraph_create_empty_node): Likewise.
      	(record_function_versions): Likewise.
      	(used_from_object_file_p): Likewise.
      	* cgraph.h (symtab_can_be_discarded): Likewise.
      	(symtab_real_symbol_p): Likewise.
      	(cgraph_mark_force_output_node): Likewise.
      	(cgraph_edge_recursive_p): Likewise.
      	(symtab_alias_target): Likewise.
      	(varpool_all_refs_explicit_p): Likewise.
      	(varpool_can_remove_if_no_refs): Likewise.
      	(cgraph_only_called_directly_or_aliased_p): Likewise.
      	(cgraph_next_function_with_gimple_body): Likewise.
      	(cgraph_first_function_with_gimple_body): Likewise.
      	(cgraph_function_with_gimple_body_p): Likewise.
      	(cgraph_next_function): Likewise.
      	(cgraph_first_function): Likewise.
      	(cgraph_next_defined_function): Likewise.
      	(cgraph_first_defined_function): Likewise.
      	(varpool_next_defined_variable): Likewise.
      	(varpool_first_defined_variable): Likewise.
      	(varpool_next_static_initializer): Likewise.
      	(varpool_first_static_initializer): Likewise.
      	(varpool_next_variable): Likewise.
      	(varpool_first_variable): Likewise.
      	(varpool_node_name): Likewise.
      	(varpool): Likewise.
      	(cgraph): Likewise.
      	(is_a_helper <varpool_node>::test): Likewise.
      	(is_a_helper <cgraph_node>::test): Likewise.
      	(varpool_variable_node): Likewise.
      	(cgraph_function_or_thunk_node): Likewise.
      	(varpool_alias_target): Likewise.
      	(cgraph_alias_target): Likewise.
      	(cgraph_node_name): Likewise.
      	(varpool_node_asm_name): Likewise.
      	(cgraph_node_asm_name): Likewise.
      	* cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
      	(cgraph_rebuild_references): Likewise.
      	(rebuild_cgraph_edges): Likewise.
      	(record_eh_tables): Likewise.
      	(build_cgraph_edges): Likewise.
      	(mark_store): Likewise.
      	(mark_load): Likewise.
      	(mark_address): Likewise.
      	(record_type_list): Likewise.
      	(record_reference): Likewise.
      	* cgraphclones.c (cgraph_materialize_all_clones): Likewise.
      	(cgraph_materialize_clone): Likewise.
      	(cgraph_function_versioning): Likewise.
      	(cgraph_copy_node_for_versioning): Likewise.
      	(update_call_expr): Likewise.
      	(cgraph_find_replacement_node): Likewise.
      	(cgraph_create_virtual_clone): Likewise.
      	(cgraph_clone_node): Likewise.
      	* cgraphunit.c (compile): Likewise.
      	(output_weakrefs): Likewise.
      	(output_in_order): Likewise.
      	(expand_function): Likewise.
      	(assemble_thunks_and_aliases): Likewise.
      	(expand_thunk): Likewise.
      	(mark_functions_to_output): Likewise.
      	(handle_alias_pairs): Likewise.
      	(analyze_functions): Likewise.
      	(walk_polymorphic_call_targets): Likewise.
      	(varpool_finalize_decl): Likewise.
      	(process_function_and_variable_attributes): Likewise.
      	(cgraph_process_same_body_aliases): Likewise.
      	(analyze_function): Likewise.
      	(cgraph_add_new_function): Likewise.
      	(cgraph_finalize_function): Likewise.
      	(referred_to_p): Likewise.
      	(cgraph_reset_node): Likewise.
      	(cgraph_process_new_functions): Likewise.
      	(enqueue_node): Likewise.
      	(decide_is_symbol_needed): Likewise.
      	* coverage.c (coverage_compute_profile_id): Likewise.
      	* dbxout.c (dbxout_expand_expr): Likewise.
      	* dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
      	(reference_to_unused): Likewise.
      	* gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
      	* gimplify.c (unvisit_body): Likewise.
      	(unshare_body): Likewise.
      	* ipa-cp.c (ipcp_generate_summary): Likewise.
      	(ipcp_decision_stage): Likewise.
      	(identify_dead_nodes): Likewise.
      	(decide_whether_version_node): Likewise.
      	(decide_about_value): Likewise.
      	(perhaps_add_new_callers): Likewise.
      	(create_specialized_node): Likewise.
      	(update_profiling_info): Likewise.
      	(ipcp_propagate_stage): Likewise.
      	(estimate_local_effects): Likewise.
      	(good_cloning_opportunity_p): Likewise.
      	(devirtualization_time_bonus): Likewise.
      	(propagate_constants_accross_call): Likewise.
      	(initialize_node_lattices): Likewise.
      	(ipcp_cloning_candidate_p): Likewise.
      	(determine_versionability): Likewise.
      	(print_all_lattices): Likewise.
      	(print_lattice): Likewise.
      	(ipcp_discover_new_direct_edges): Likewise.
      	* ipa-devirt.c (ipa_devirt): Likewise.
      	(likely_target_p): Likewise.
      	(update_type_inheritance_graph): Likewise.
      	(possible_polymorphic_call_target_p): Likewise.
      	(dump_possible_polymorphic_call_targets): Likewise.
      	(devirt_variable_node_removal_hook): Likewise.
      	(record_binfo): Likewise.
      	(maybe_record_node): Likewise.
      	(build_type_inheritance_graph): Likewise.
      	* ipa-inline-analysis.c (inline_write_summary): Likewise.
      	(inline_generate_summary): Likewise.
      	(inline_analyze_function): Likewise.
      	(do_estimate_growth): Likewise.
      	(simple_edge_hints): Likewise.
      	(estimate_node_size_and_time): Likewise.
      	(estimate_edge_devirt_benefit): Likewise.
      	(compute_inline_parameters): Likewise.
      	(estimate_function_body_sizes): Likewise.
      	(compute_bb_predicates): Likewise.
      	(initialize_inline_failed): Likewise.
      	(dump_inline_summary): Likewise.
      	(dump_inline_edge_summary): Likewise.
      	* ipa-inline-transform.c (inline_transform): Likewise.
      	(preserve_function_body_p): Likewise.
      	(save_inline_function_body): Likewise.
      	(inline_call): Likewise.
      	(clone_inlined_nodes): Likewise.
      	(can_remove_node_now_p): Likewise.
      	(can_remove_node_now_p_1): Likewise.
      	* ipa-inline.c (early_inliner): Likewise.
      	(early_inline_small_functions): Likewise.
      	(inline_always_inline_functions): Likewise.
      	(ipa_inline): Likewise.
      	(flatten_function): Likewise.
      	(inline_small_functions): Likewise.
      	(speculation_useful_p): Likewise.
      	(recursive_inlining): Likewise.
      	(update_caller_keys): Likewise.
      	(reset_edge_caches): Likewise.
      	(update_edge_key): Likewise.
      	(edge_badness): Likewise.
      	(relative_time_benefit): Likewise.
      	(want_inline_self_recursive_call_p): Likewise.
      	(want_inline_small_function_p): Likewise.
      	(want_early_inline_function_p): Likewise.
      	(num_calls): Likewise.
      	(can_early_inline_edge_p): Likewise.
      	(can_inline_edge_p): Likewise.
      	(report_inline_failed_reason): Likewise.
      	* ipa-profile.c (ipa_profile): Likewise.
      	(ipa_propagate_frequency): Likewise.
      	(ipa_propagate_frequency_1): Likewise.
      	(ipa_profile_generate_summary): Likewise.
      	* ipa-prop.c (ipcp_transform_function): Likewise.
      	(read_replacements_section): Likewise.
      	(ipa_prop_read_section): Likewise.
      	(ipa_modify_call_arguments): Likewise.
      	(ipa_print_node_params): Likewise.
      	(propagate_controlled_uses): Likewise.
      	(update_indirect_edges_after_inlining): Likewise.
      	(remove_described_reference): Likewise.
      	(ipa_make_edge_direct_to_target): Likewise.
      	(ipa_analyze_node): Likewise.
      	(ipa_analyze_params_uses): Likewise.
      	(ipa_compute_jump_functions): Likewise.
      	(ipa_get_callee_param_type): Likewise.
      	(ipa_print_node_jump_functions): Likewise.
      	(ipa_initialize_node_params): Likewise.
      	(ipa_populate_param_decls): Likewise.
      	(ipa_func_spec_opts_forbid_analysis_p): Likewise.
      	(write_agg_replacement_chain): Likewise.
      	(ipa_write_node_info): Likewise.
      	(ipa_edge_duplication_hook): Likewise.
      	(try_decrement_rdesc_refcount): Likewise.
      	* ipa-pure-const.c (propagate_nothrow): Likewise.
      	(propagate_pure_const): Likewise.
      	(pure_const_read_summary): Likewise.
      	(pure_const_write_summary): Likewise.
      	(analyze_function): Likewise.
      	* ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
      	(ipa_ref_referring_ref_list): Likewise.
      	* ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
      	(ipa_remove_stmt_references): Likewise.
      	(ipa_find_reference): Likewise.
      	(ipa_dump_referring): Likewise.
      	(ipa_dump_references): Likewise.
      	(ipa_record_reference): Likewise.
      	* ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
      	(ipa_reference_write_optimization_summary): Likewise.
      	(write_node_summary_p): Likewise.
      	(propagate): Likewise.
      	(read_write_all_from_decl): Likewise.
      	(generate_summary): Likewise.
      	(analyze_function): Likewise.
      	(propagate_bits): Likewise.
      	(ipa_reference_get_not_written_global): Likewise.
      	(ipa_reference_get_not_read_global): Likewise.
      	* ipa-split.c (execute_split_functions): Likewise.
      	(split_function): Likewise.
      	* ipa-utils.c (ipa_merge_profiles): Likewise.
      	(dump_cgraph_node_set): Likewise.
      	(ipa_reverse_postorder): Likewise.
      	(ipa_edge_within_scc): Likewise.
      	(ipa_get_nodes_in_cycle): Likewise.
      	(ipa_free_postorder_info): Likewise.
      	(ipa_reduced_postorder): Likewise.
      	(searchc): Likewise.
      	(recursive_call_p): Likewise.
      	* ipa.c (ipa_cdtor_merge): Likewise.
      	(record_cdtor_fn): Likewise.
      	(function_and_variable_visibility): Likewise.
      	(varpool_externally_visible_p): Likewise.
      	(cgraph_externally_visible_p): Likewise.
      	(comdat_can_be_unshared_p): Likewise.
      	(comdat_can_be_unshared_p_1): Likewise.
      	(address_taken_from_non_vtable_p): Likewise.
      	(ipa_discover_readonly_nonaddressable_vars): Likewise.
      	(symtab_remove_unreachable_nodes): Likewise.
      	(walk_polymorphic_call_targets): Likewise.
      	(process_references): Likewise.
      	(enqueue_node): Likewise.
      	(has_addr_references_p): Likewise.
      	(cgraph_non_local_node_p_1): Likewise.
      	* is-a.h (varpool_analyze_node): Likewise.
      	* lto-cgraph.c (input_symtab): Likewise.
      	(merge_profile_summaries): Likewise.
      	(input_cgraph_1): Likewise.
      	(input_edge): Likewise.
      	(input_varpool_node): Likewise.
      	(input_node): Likewise.
      	(input_overwrite_node): Likewise.
      	(compute_ltrans_boundary): Likewise.
      	(output_refs): Likewise.
      	(lto_output_varpool_node): Likewise.
      	(lto_output_node): Likewise.
      	(reachable_from_other_partition_p): Likewise.
      	(referenced_from_other_partition_p): Likewise.
      	(lto_output_edge): Likewise.
      	(output_node_opt_summary): Likewise.
      	(add_node_to): Likewise.
      	(reachable_from_this_partition_p): Likewise.
      	(lto_set_symtab_encoder_in_partition): Likewise.
      	(lto_symtab_encoder_in_partition_p): Likewise.
      	(lto_set_symtab_encoder_encode_initializer): Likewise.
      	(lto_symtab_encoder_encode_initializer_p): Likewise.
      	(lto_set_symtab_encoder_encode_body): Likewise.
      	(lto_symtab_encoder_encode_body_p): Likewise.
      	* lto-section-in.c (lto_free_function_in_decl_state_for_node):
      	Likewise.
      	* lto-streamer-in.c (lto_read_body): Likewise.
      	(fixup_call_stmt_edges): Likewise.
      	(fixup_call_stmt_edges_1): Likewise.
      	* lto-streamer-out.c (produce_symtab): Likewise.
      	(output_symbol_p): Likewise.
      	(write_symbol): Likewise.
      	(lto_output): Likewise.
      	(copy_function): Likewise.
      	(output_function): Likewise.
      	* passes.c (function_called_by_processed_nodes_p): Likewise.
      	(ipa_write_optimization_summaries): Likewise.
      	(ipa_write_summaries): Likewise.
      	(do_per_function_toporder): Likewise.
      	(do_per_function): Likewise.
      	(dump_passes): Likewise.
      	* symtab.c (symtab_semantically_equivalent_p): Likewise.
      	(symtab_nonoverwritable_alias): Likewise.
      	(symtab_nonoverwritable_alias_1): Likewise.
      	(symtab_for_node_and_aliases): Likewise.
      	(symtab_resolve_alias): Likewise.
      	(fixup_same_cpp_alias_visibility): Likewise.
      	(symtab_alias_ultimate_target): Likewise.
      	(symtab_used_from_object_file_p): Likewise.
      	(verify_symtab_base): Likewise.
      	(dump_symtab_base): Likewise.
      	(symtab_node_name): Likewise.
      	(symtab_node_asm_name): Likewise.
      	(symtab_dissolve_same_comdat_group_list): Likewise.
      	(symtab_add_to_same_comdat_group): Likewise.
      	(symtab_unregister_node): Likewise.
      	(symtab_insert_node_to_hashtable): Likewise.
      	(symtab_register_node): Likewise.
      	(unlink_from_assembler_name_hash): Likewise.
      	(insert_to_assembler_name_hash): Likewise.
      	(eq_assembler_name): Likewise.
      	(hash_node_by_assembler_name): Likewise.
      	(eq_node): Likewise.
      	(hash_node): Likewise.
      	* toplev.c (wrapup_global_declaration_2): Likewise.
      	* trans-mem.c (ipa_tm_execute): Likewise.
      	(ipa_tm_transform_clone): Likewise.
      	(ipa_tm_transform_transaction): Likewise.
      	(ipa_tm_transform_calls_redirect): Likewise.
      	(ipa_tm_insert_gettmclone_call): Likewise.
      	(ipa_tm_insert_irr_call): Likewise.
      	(ipa_tm_create_version): Likewise.
      	(ipa_tm_create_version_alias): Likewise.
      	(ipa_tm_mark_forced_by_abi_node): Likewise.
      	(ipa_tm_mark_force_output_node): Likewise.
      	(ipa_tm_diagnose_tm_safe): Likewise.
      	(ipa_tm_mayenterirr_function): Likewise.
      	(ipa_tm_scan_irr_function): Likewise.
      	(ipa_tm_note_irrevocable): Likewise.
      	(ipa_tm_scan_calls_clone): Likewise.
      	(get_cg_data): Likewise.
      	* tree-eh.c (tree_could_trap_p): Likewise.
      	* tree-emutls.c (ipa_lower_emutls): Likewise.
      	(create_emultls_var): Likewise.
      	(lower_emutls_function_body): Likewise.
      	(gen_emutls_addr): Likewise.
      	(emutls_decl): Likewise.
      	(new_emutls_decl): Likewise.
      	* tree-inline.c (tree_function_versioning): Likewise.
      	(optimize_inline_calls): Likewise.
      	(expand_call_inline): Likewise.
      	(estimate_num_insns): Likewise.
      	(copy_bb): Likewise.
      	(delete_unreachable_blocks_update_callgraph): Likewise.
      	* tree-nested.c (gimplify_all_functions): Likewise.
      	(create_nesting_tree): Likewise.
      	(check_for_nested_with_variably_modified): Likewise.
      	* tree-pretty-print.c (dump_function_header): Likewise.
      	* tree-profile.c (tree_profiling): Likewise.
      	* tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
      	(modify_function): Likewise.
      	(convert_callers): Likewise.
      	(convert_callers_for_node): Likewise.
      	* tree-ssa-structalias.c (ipa_pta_execute): Likewise.
      	(associate_varinfo_to_alias): Likewise.
      	(create_variable_info_for): Likewise.
      	(get_constraint_for_ssa_var): Likewise.
      	* tree-vectorizer.c (increase_alignment): Likewise.
      	* tree.c (find_decls_types_in_var): Likewise.
      	(find_decls_types_in_node): Likewise.
      	(free_lang_data_in_decl): Likewise.
      	* value-prof.c (gimple_ic_transform): Likewise.
      	(gimple_ic): Likewise.
      	(check_ic_target): Likewise.
      	(init_node_map): Likewise.
      	* varasm.c (decl_binds_to_current_def_p): Likewise.
      	(default_binds_local_p_1): Likewise.
      	(dump_tm_clone_pairs): Likewise.
      	(assemble_alias): Likewise.
      	(find_decl): Likewise.
      	(mark_decl_referenced): Likewise.
      	* varpool.c (varpool_for_node_and_aliases): Likewise.
      	(varpool_extra_name_alias): Likewise.
      	(varpool_create_variable_alias): Likewise.
      	(add_new_static_var): Likewise.
      	(varpool_finalize_named_section_flags): Likewise.
      	(varpool_remove_unreferenced_decls): Likewise.
      	(enqueue_node): Likewise.
      	(varpool_assemble_decl): Likewise.
      	(assemble_aliases): Likewise.
      	(varpool_analyze_node): Likewise.
      	(cgraph_variable_initializer_availability): Likewise.
      	(varpool_add_new_variable): Likewise.
      	(ctor_for_folding): Likewise.
      	(dump_varpool_node): Likewise.
      	(varpool_remove_initializer): Likewise.
      	(varpool_remove_node): Likewise.
      	(varpool_node_for_decl): Likewise.
      	(varpool_create_empty_node): Likewise.
      	* config/i386/i386.c (ix86_generate_version_dispatcher_body):
      	Likewise.
      	(ix86_get_function_versions_dispatcher): Likewise.
      
      gcc/ada/
      
      	Patch autogenerated by refactor_symtab.py from
      	https://github.com/davidmalcolm/gcc-refactoring-scripts
      	revision 58bb219cc090b2f4516a9297d868c245495ee622
      
      	* gcc-interface/trans.c (finalize_nrv): Update for conversion of
      	symtab types to a true class hierarchy.
      	* gcc-interface/utils.c (gnat_write_global_declarations): Likewise.
      
      gcc/c-family/
      
      	Patch autogenerated by refactor_symtab.py from
      	https://github.com/davidmalcolm/gcc-refactoring-scripts
      	revision 58bb219cc090b2f4516a9297d868c245495ee622
      
      	* c-gimplify.c (c_genericize): Update for conversion of symtab types
      	to a true class hierarchy.
      	* c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
      
      gcc/cp/
      
      	Patch autogenerated by refactor_symtab.py from
      	https://github.com/davidmalcolm/gcc-refactoring-scripts
      	revision 58bb219cc090b2f4516a9297d868c245495ee622
      
      	* call.c (mark_versions_used): Update for conversion of symtab types
      	to a true class hierarchy.
      	* decl2.c (cp_write_global_declarations): Likewise.
      	(clear_decl_external): Likewise.
      	(build_java_method_aliases): Likewise.
      	(collect_candidates_for_java_method_aliases): Likewise.
      	(mark_needed): Likewise.
      	(var_finalized_p): Likewise.
      	(maybe_make_one_only): Likewise.
      	(maybe_emit_vtables): Likewise.
      	* lambda.c (maybe_add_lambda_conv_op): Likewise.
      	* method.c (use_thunk): Likewise.
      	* optimize.c (maybe_clone_body): Likewise.
      	* tree.c (cp_fix_function_decl_p): Likewise.
      
      gcc/java/
      
      	Patch autogenerated by refactor_symtab.py from
      	https://github.com/davidmalcolm/gcc-refactoring-scripts
      	revision 58bb219cc090b2f4516a9297d868c245495ee622
      
      	* decl.c (java_mark_decl_local): Update for conversion of symtab types
      	to a true class hierarchy.
      
      gcc/lto/
      
      	Patch autogenerated by refactor_symtab.py from
      	https://github.com/davidmalcolm/gcc-refactoring-scripts
      	revision 58bb219cc090b2f4516a9297d868c245495ee622
      
      	* lto-partition.c (lto_promote_cross_file_statics): Update for
      	conversion of symtab types to a true class hierarchy.
      	(rename_statics): Likewise.
      	(promote_symbol): Likewise.
      	(privatize_symbol_name): Likewise.
      	(lto_balanced_map): Likewise.
      	(varpool_node_cmp): Likewise.
      	(node_cmp): Likewise.
      	(lto_1_to_1_map): Likewise.
      	(undo_partition): Likewise.
      	(add_symbol_to_partition): Likewise.
      	(contained_in_symbol): Likewise.
      	(add_symbol_to_partition_1): Likewise.
      	(add_references_to_partition): Likewise.
      	(symbol_partitioned_p): Likewise.
      	(get_symbol_class): Likewise.
      	(lto_max_map): Likewise.
      	* lto-symtab.c (lto_symtab_prevailing_decl): Likewise.
      	(lto_symtab_merge_symbols): Likewise.
      	(lto_symtab_merge_symbols_1): Likewise.
      	(lto_symtab_merge_decls): Likewise.
      	(lto_symtab_merge_decls_1): Likewise.
      	(lto_symtab_merge_decls_2): Likewise.
      	(lto_symtab_resolve_symbols): Likewise.
      	(lto_symtab_resolve_can_prevail_p): Likewise.
      	(lto_symtab_symbol_p): Likewise.
      	(lto_symtab_resolve_replaceable_p): Likewise.
      	(lto_symtab_merge): Likewise.
      	(lto_varpool_replace_node): Likewise.
      	(lto_cgraph_replace_node): Likewise.
      	* lto.c (lto_main): Likewise.
      	(do_whole_program_analysis): Likewise.
      	(materialize_cgraph): Likewise.
      	(read_cgraph_and_symbols): Likewise.
      	(cmp_partitions_order): Likewise.
      	(lto_materialize_function): Likewise.
      	(has_analyzed_clone_p): Likewise.
      
      From-SVN: r204171
      David Malcolm committed
  12. 29 May, 2013 1 commit
    • cgraph.h (symtab_node_base): Add definition, alias and analyzed flags... · e70670cf
      	* cgraph.h (symtab_node_base): Add definition, alias and analyzed
      	flags; reorder rest of fields in more consistent way.
      	(varpool_node): Remove analyzed, finalized and alias.
      	(cgraph_ndoe): Likewise.
      	(symtab_alias_ultimate_target): New function.
      	(cgraph_function_node): Move offline.
      	(cgraph_reset_node): Declare.
      	(cgraph_comdat_can_be_unshared_p): Remove.
      	(varpool_remove_initializer): Declare.
      	(varpool_first_defined_variable, varpool_next_defined_variable
      	cgraph_first_defined_function, cgraph_next_defined_function): Update.
      	(cgraph_function_with_gimple_body_p): Update.
      	(varpool_all_refs_explicit_p): Update.
      	(symtab_alias_target): New function.
      	(cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
      	(cgraph_alias_target, varpool_alias_target): .. this one; simplify.
      	(cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
      	(varpool_variable_node): Likewise.
      	* cgraph.c (cgraph_create_function_alias): Update.
      	(cgraph_add_thunk): Update.
      	(cgraph_remove_node): Update.
      	(dump_cgraph_node): Do not dump removed flags.
      	(cgraph_function_body_availability): Update.
      	(cgraph_propagate_frequency): Update.
      	(verify_cgraph_node): Check sanity of local flag.
      	(cgraph_function_node): Move here from cgraph.h; revamp for
      	cgraph_function_or_thunk_node.
      	* lto-symtab.c (lto_varpool_replace_node): Update.
      	(lto_symtab_resolve_can_prevail_p): Update.
      	(lto_symtab_merge_cgraph_nodes): Update.
      	* ipa-cp.c (determine_versionability, initialize_node_lattices,
      	propagate_constants_accross_call, devirtualization_time_bonus,
      	ipcp_propagate_stage): Update.
      	* tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
      	* ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
      	* ipa-reference.c (propagate): Update.
      	(write_node_summary_p): Update.
      	* toplev.c (wrapup_global_declaration_2): Update.
      	* cgraphunit.c (cgraph_analyze_function): Rename to ...
      	(analyze_function) ... this one.
      	(cgraph_process_new_functions): Update.
      	(cgraph_reset_node): Export.
      	(cgraph_finalize_function): Update.
      	(cgraph_add_new_function): Update.
      	(process_function_and_variable_attributes): Update.
      	(varpool_finalize_decl): Update.
      	(symbol_finalized): Remove.
      	(symbol_finalized_and_needed): Rename to ...
      	(symbol_defined_and_needed): ... update.
      	(cgraph_analyze_functions): Update.
      	(handle_alias_pairs): Update.
      	(mark_functions_to_output): Update.
      	(assemble_thunk): Update.
      	(output_in_order): Update.
      	(output_weakrefs): Update.
      	(finalize_compilation_unit): Update.
      	* lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
      	lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
      	input_node, input_varpool_node): Update.
      	* dbxout.c (dbxout_expand_expr): Update.
      	* cgraphclones.c (cgraph_clone_node): Update.
      	(cgraph_copy_node_for_versioning): Update.
      	(cgraph_materialize_clone): Update.
      	(cgraph_materialize_all_clones): Update.
      	* ipa-pure-const.c (analyze_function, pure_const_write_summary,
      	propagate_pure_const, propagate_nothrow): Update.
      	* lto-streamer-out.c (lto_output, write_symbol): Update.
      	* ipa-utils.c (ipa_reverse_postorder): Update.
      	* ipa-inline.c (can_inline_edge_p): Update.
      	(update_caller_keys, ipa_inline): Update.
      	* dwarf2out.c (reference_to_unused,
      	premark_types_used_by_global_vars_helper): Update.
      	* tree-eh.c (tree_could_trap_p): Update.
      	* ipa-split.c (consider_split, execute_split_functions): Update.
      	* ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
      	 has_addr_references_p): Update;
      	move ahead in file for better readability.
      	(process_references): Simplify.
      	(symtab_remove_unreachable_nodes): Update; cleanup way function/var
      	bodies are removed.
      	(cgraph_comdat_can_be_unshared_p): Make static.
      	(cgraph_externally_visible_p): Update.
      	(varpool_externally_visible_p): Update.
      	(function_and_variable_visibility): Update.
      	* trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
      	ipa_tm_mark_force_output_node): Update.
      	* ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
      	estimate_edge_devirt_benefit, inline_generate_summary,
      	inline_write_summary): Update.
      	* gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
      	* ipa-prop.c (ipa_compute_jump_functions): Update.
      	(ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
      	read_replacements_section): Update.
      	* varasm.c (mark_decl_referenced): Update.
      	(assemble_alias, dump_tm_clone_pairs): Update.
      	* tree-inline.c (copy_bb): Update.
      	(estimate_num_insns, optimize_inline_calls, tree_function_versioning):
      	Update.
      	* symtab.c (dump_symtab_base): Print new flags.
      	(verify_symtab_base): Verify new flags.
      	(symtab_alias_ultimate_target): New function.
      	* tree-ssa-structalias.c (get_constraint_for_ssa_var,
      	create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
      	Update.
      	* passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
      	* i386.c (ix86_get_function_versions_dispatcher,
      	ix86_generate_version_dispatcher_body): Update.
      	(fold_builtin_cpu): Use varpool_add_new_variable.
      	* varpool.c (varpool_remove_initializer): Break out from ...
      	(varpool_remove_node): ... this one.
      	(dump_varpool_node, varpool_node_for_asm,
      	cgraph_variable_initializer_availability, varpool_analyze_node,
      	varpool_assemble_decl, varpool_remove_unreferenced_decls,
      	varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
      
      	* decl.c (java_mark_decl_local): Update for new symtab flags.
      
      	* tree.c (cp_fix_function_decl_p): Update for new symtab flags.
      	* decl2.c )var_finalized_p, cp_write_global_declarations): Likewise.
      
      	* lto.c (has_analyzed_clone_p, lto_materialize_function): Update for new symtab
      	flags.
      	* lto-partition.c (get_symbol_class, lto_balanced_map): Likewise.
      
      From-SVN: r199422
      Jan Hubicka committed
  13. 10 Jan, 2013 1 commit
  14. 04 Jan, 2013 1 commit
  15. 18 Nov, 2012 1 commit
    • This patch rewrites the old VEC macro-based interface into a new one based on… · 9771b263
      This patch rewrites the old VEC macro-based interface into a new one based on the template class 'vec'.
      
      This patch rewrites the old VEC macro-based interface into a new one
      based on the template class 'vec'.  The user-visible changes are
      described in http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec.
      
      I have tested the patch pretty extensively:
      
      - Regular bootstraps on x86_64, ppc, ia64, sparc and hppa.
      - Bootstraps with --enable-checking=release
      - Bootstraps with --enable-checking=gc,gcac
      - Basic builds on all targets (using contrib/config-list.mk).
      
      We no longer access the vectors via VEC_* macros.  The pattern is
      "VEC_operation (T, A, V, args)" becomes "V.operation (args)".
      
      The only thing I could not do is create proper ctors and dtors for the
      vec class.  Since these vectors are stored in unions, we
      have to keep them as PODs (C++03 does not allow non-PODs in unions).
      
      This means that creation and destruction must be explicit.  There is a
      new method vec<type, allocation, layout>::create() and another vec<type,
      allocation, layout>::destroy() to allocate the internal vector.
      
      For vectors that must be pointers, there is a family of free functions
      that implement the operations that need to tolerate NULL vectors.
      These functions all start with the prefix 'vec_safe_'.  See the wiki
      page for details.
      
      The gengtype change removes the special handling for VEC() that used
      to exist in gengtype. Additionally, it allows gengtype to recognize
      templates of more than one argument and introduces the concept of an
      undefined type (useful for template arguments that may or may not be
      types).
      
      When a TYPE_UNDEFINED is reached, gengtype will ignore it if it
      happens inside a type marked with GTY((user)).  Otherwise, it will
      emit an error.
      
      Finally, gengtype rejects root types marked GTY((user)) that are not
      first class pointers.
      
      2012-11-16  Diego Novillo  <dnovillo@google.com>
      
      	VEC API overhaul (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
      
      	* vec.c (register_overhead): Convert it into
      	member function of vec_prefix.
      	(release_overhead): Likewise.
      	(calculate_allocation): Likewise.
      	(vec_heap_free): Remove.
      	(vec_gc_o_reserve_1): Remove.
      	(vec_heap_o_reserve_1): Remove.
      	(vec_stack_o_reserve_1): Remove.
      	(vec_stack_o_reserve_exact): Remove.
      	(register_stack_vec): New.
      	(stack_vec_register_index): New.
      	(unregister_stack_vec): New.
      	(vec_assert_fail): Remove.
      	* vec.h: Conditionally include ggc.h.  Document conditional
      	hackery.
      	Update top-level documentation.
      	(ALONE_VEC_CHECK_INFO): Remove.
      	(VEC_CHECK_INFO): Remove.
      	(ALONE_VEC_CHECK_DECL): Remove.
      	(VEC_CHECK_DECL): Remove.
      	(ALONE_VEC_CHECK_PASS): Remove.
      	(VEC_CHECK_PASS): Remove.
      	(VEC_ASSERT): Remove.
      	(vec_prefix): Add friends va_gc, va_gc_atomic, va_heap and
      	va_stack.
      	Mark fields alloc_ and num_ as protected.
      	(struct vec_t): Remove.  Remove all function members.
      	(struct vl_embed): Declare.
      	(struct vl_ptr): Declare.
      	(free): Remove.
      	(reserve_exact): Remove.
      	(reserve): Remove.
      	(safe_splice): Remove.
      	(safe_push): Remove.
      	(safe_grow): Remove.
      	(safe_grow_cleared): Remove.
      	(safe_insert): Remove.
      	(DEF_VEC_I): Remove.
      	(DEF_VEC_ALLOC_I): Remove.
      	(DEF_VEC_P): Remove.
      	(DEF_VEC_ALLOC_P): Remove.
      	(DEF_VEC_O): Remove.
      	(DEF_VEC_ALLOC_O): Remove.
      	(DEF_VEC_ALLOC_P_STACK): Remove.
      	(DEF_VEC_ALLOC_O_STACK): Remove.
      	(DEF_VEC_ALLOC_I_STACK): Remove.
      	(DEF_VEC_A): Remove.
      	(DEF_VEC_ALLOC_A): Remove.
      	(vec_stack_p_reserve_exact_1): Remove.
      	(vec_stack_o_reserve): Remove.
      	(vec_stack_o_reserve_exact): Remove.
      	(VEC_length): Remove.
      	(VEC_empty): Remove.
      	(VEC_address): Remove.
      	(vec_address): Remove.
      	(VEC_last): Remove.
      	(VEC_index): Remove.
      	(VEC_iterate): Remove.
      	(VEC_embedded_size): Remove.
      	(VEC_embedded_init): Remove.
      	(VEC_free): Remove.
      	(VEC_copy): Remove.
      	(VEC_space): Remove.
      	(VEC_reserve): Remove.
      	(VEC_reserve_exact): Remove.
      	(VEC_splice): Remove.
      	(VEC_safe_splice): Remove.
      	(VEC_quick_push): Remove.
      	(VEC_safe_push): Remove.
      	(VEC_pop): Remove.
      	(VEC_truncate): Remove.
      	(VEC_safe_grow): Remove.
      	(VEC_replace): Remove.
      	(VEC_quick_insert): Remove.
      	(VEC_safe_insert): Remove.
      	(VEC_ordered_remove): Remove.
      	(VEC_unordered_remove): Remove.
      	(VEC_block_remove): Remove.
      	(VEC_lower_bound): Remove.
      	(VEC_alloc): Remove.
      	(VEC_qsort): Remove.
      
      	(va_heap): Declare.
      	(va_heap::default_layout): New typedef to vl_ptr.
      	(va_heap::reserve): New.
      	(va_heap::release): New.
      	(va_gc): Declare.
      	(va_gc::default_layout): New typedef to vl_embed.
      	(va_gc::reserve): New.
      	(va_gc::release): New.
      	(va_gc_atomic): Declare.  Inherit from va_gc.
      	(va_stack): Declare.
      	(va_stack::default_layout): New typedef to vl_ptr.
      	(va_stack::alloc): New.
      	(va_stack::reserve): New.
      	(va_stack::release): New.
      	(register_stack_vec): Declare.
      	(stack_vec_register_index): Declare.
      	(unregister_stack_vec): Declare.
      
      	(vec<T, A = va_heap, L = typename A::default_layout>): Declare
      	empty vec template.
      	(vec<T, A, vl_embed>): Partial specialization for embedded
      	layout.
      	(vec<T, A, vl_embed>::allocated): New.
      	(vec<T, A, vl_embed>::length): New.
      	(vec<T, A, vl_embed>::is_empty): New.
      	(vec<T, A, vl_embed>::address): New.
      	(vec<T, A, vl_embed>::operator[]): New.
      	(vec<T, A, vl_embed>::last New.
      	(vec<T, A, vl_embed>::space): New.
      	(vec<T, A, vl_embed>::iterate): New.
      	(vec<T, A, vl_embed>::iterate): New.
      	(vec<T, A, vl_embed>::copy): New.
      	(vec<T, A, vl_embed>::splice): New.
      	(vec<T, A, vl_embed>::quick_push New.
      	(vec<T, A, vl_embed>::pop New.
      	(vec<T, A, vl_embed>::truncate): New.
      	(vec<T, A, vl_embed>::quick_insert): New.
      	(vec<T, A, vl_embed>::ordered_remove): New.
      	(vec<T, A, vl_embed>::unordered_remove): New.
      	(vec<T, A, vl_embed>::block_remove): New.
      	(vec<T, A, vl_embed>::qsort): New.
      	(vec<T, A, vl_embed>::lower_bound): New.
      	(vec<T, A, vl_embed>::embedded_size): New.
      	(vec<T, A, vl_embed>::embedded_init): New.
      	(vec<T, A, vl_embed>::quick_grow): New.
      	(vec<T, A, vl_embed>::quick_grow_cleared): New.
      	(vec_safe_space): New.
      	(vec_safe_length): New.
      	(vec_safe_address): New.
      	(vec_safe_is_empty): New.
      	(vec_safe_reserve): New.
      	(vec_safe_reserve_exact): New.
      	(vec_alloc): New.
      	(vec_free): New.
      	(vec_safe_grow): New.
      	(vec_safe_grow_cleared): New.
      	(vec_safe_iterate): New.
      	(vec_safe_push): New.
      	(vec_safe_insert): New.
      	(vec_safe_truncate): New.
      	(vec_safe_copy): New.
      	(vec_safe_splice): New.
      
      	(vec<T, A, vl_ptr>): New partial specialization for the space
      	efficient layout.
      	(vec<T, A, vl_ptr>::exists): New.
      	(vec<T, A, vl_ptr>::is_empty): New.
      	(vec<T, A, vl_ptr>::length): New.
      	(vec<T, A, vl_ptr>::address): New.
      	(vec<T, A, vl_ptr>::operator[]): New.
      	(vec<T, A, vl_ptr>::operator!=): New.
      	(vec<T, A, vl_ptr>::operator==): New.
      	(vec<T, A, vl_ptr>::last): New.
      	(vec<T, A, vl_ptr>::space): New.
      	(vec<T, A, vl_ptr>::iterate): New.
      	(vec<T, A, vl_ptr>::copy): New.
      	(vec<T, A, vl_ptr>::reserve): New.
      	(vec<T, A, vl_ptr>::reserve_exact): New.
      	(vec<T, A, vl_ptr>::splice): New.
      	(vec<T, A, vl_ptr>::safe_splice): New.
      	(vec<T, A, vl_ptr>::quick_push): New.
      	(vec<T, A, vl_ptr>::safe_push): New.
      	(vec<T, A, vl_ptr>::pop): New.
      	(vec<T, A, vl_ptr>::truncate): New.
      	(vec<T, A, vl_ptr>::safe_grow): New.
      	(vec<T, A, vl_ptr>::safe_grow_cleared): New.
      	(vec<T, A, vl_ptr>::quick_grow): New.
      	(vec<T, A, vl_ptr>::quick_grow_cleared): New.
      	(vec<T, A, vl_ptr>::quick_insert): New.
      	(vec<T, A, vl_ptr>::safe_insert): New.
      	(vec<T, A, vl_ptr>::ordered_remove): New.
      	(vec<T, A, vl_ptr>::unordered_remove): New.
      	(vec<T, A, vl_ptr>::block_remove): New.
      	(vec<T, A, vl_ptr>::qsort): New.
      	(vec<T, A, vl_ptr>::lower_bound): New.
      	(vec_stack_alloc): Define.
      	(FOR_EACH_VEC_SAFE_ELT): Define.
      	* vecir.h: Remove.  Update all users.
      	* vecprim.h: Remove.  Update all users.
      	Move uchar to coretypes.h.
      
      	* Makefile.in (VEC_H): Add $(GGC_H).
      	Remove vecir.h and vecprim.h dependencies everywhere.
      
      2012-11-16  Diego Novillo  <dnovillo@google.com>
      
      	* gengtype-lex.l (VEC): Remove.
      	Add characters in the set [\!\>\.-].
      	* gengtype-parse.c (token_names): Remove "VEC".
      	(require_template_declaration): Remove handling of VEC_TOKEN.
      	(type): Likewise.
      	Call create_user_defined_type when parsing GTY((user)).
      	* gengtype-state.c (type_lineloc): handle TYPE_UNDEFINED.
      	(write_state_undefined_type): New.
      	(write_state_type): Call write_state_undefined_type for
      	TYPE_UNDEFINED.
      	(read_state_type): Call read_state_undefined_type for
      	TYPE_UNDEFINED.
      	* gengtype.c (dbgprint_count_type_at): Handle TYPE_UNDEFINED.
      	(create_user_defined_type): Make extern.
      	(type_for_name): Factor out of resolve_typedef.
      	(create_undefined_type): New
      	(resolve_typedef): Call it when we cannot find a previous
      	typedef and the type is not a template.
      	(find_structure): Accept TYPE_UNDEFINED.
      	(set_gc_used_type): Add argument ALLOWED_UNDEFINED_TYPES,
      	default to false.
      	Emit an error for TYPE_UNDEFINED unless LEVEL is GC_UNUSED or
      	ALLOWED_UNDEFINED_TYPES is set.
      	Set ALLOWED_UNDEFINED_TYPES to true for TYPE_USER_STRUCT.
      	(filter_type_name): Accept templates with more than one
      	argument.
      	(output_mangled_typename): Handle TYPE_UNDEFINED
      	(walk_type): Likewise.
      	(write_types_process_field): Likewise.
      	(write_func_for_structure): If CHAIN_NEXT is set, ORIG_S
      	should not be a user-defined type.
      	(write_types_local_user_process_field): Handle TYPE_ARRAY,
      	TYPE_NONE and TYPE_UNDEFINED.
      	(write_types_local_process_field): Likewise.
      	(contains_scalar_p): Return 0 for TYPE_USER_STRUCT.
      	(write_root): Reject user-defined types that are not pointers.
      	Handle TYPE_NONE, TYPE_UNDEFINED, TYPE_UNION, TYPE_LANG_STRUCT
      	and TYPE_PARAM_STRUCT.
      	(output_typename): Handle TYPE_NONE, TYPE_UNDEFINED, and
      	TYPE_ARRAY.
      	(dump_typekind): Handle TYPE_UNDEFINED.
      	* gengtype.h (enum typekind): Add TYPE_UNDEFINED.
      	(create_user_defined_type): Declare.
      	(enum gty_token): Remove VEC_TOKEN.
      
      2012-11-16  Diego Novillo  <dnovillo@google.com>
      
      	Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
      
      	* coretypes.h (uchar): Define.
      	* alias.c: Use new vec API in vec.h.
      	* asan.c: Likewise.
      	* attribs.c: Likewise.
      	* basic-block.h: Likewise.
      	* bb-reorder.c: Likewise.
      	* builtins.c: Likewise.
      	* calls.c: Likewise.
      	* cfg.c: Likewise.
      	* cfganal.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* cfgexpand.c: Likewise.
      	* cfghooks.c: Likewise.
      	* cfghooks.h: Likewise.
      	* cfgloop.c: Likewise.
      	* cfgloop.h: Likewise.
      	* cfgloopanal.c: Likewise.
      	* cfgloopmanip.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* cgraph.c: Likewise.
      	* cgraph.h: Likewise.
      	* cgraphclones.c: Likewise.
      	* cgraphunit.c: Likewise.
      	* combine.c: Likewise.
      	* compare-elim.c: Likewise.
      	* coverage.c: Likewise.
      	* cprop.c: Likewise.
      	* data-streamer.h: Likewise.
      	* dbxout.c: Likewise.
      	* dce.c: Likewise.
      	* df-core.c: Likewise.
      	* df-problems.c: Likewise.
      	* df-scan.c: Likewise.
      	* dominance.c: Likewise.
      	* domwalk.c: Likewise.
      	* domwalk.h: Likewise.
      	* dse.c: Likewise.
      	* dwarf2cfi.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarf2out.h: Likewise.
      	* emit-rtl.c: Likewise.
      	* except.c: Likewise.
      	* except.h: Likewise.
      	* expr.c: Likewise.
      	* expr.h: Likewise.
      	* final.c: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* function.h: Likewise.
      	* fwprop.c: Likewise.
      	* gcc.c: Likewise.
      	* gcse.c: Likewise.
      	* genattr.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genautomata.c: Likewise.
      	* genextract.c: Likewise.
      	* genopinit.c: Likewise
      	* ggc-common.c: Likewise.
      	* ggc.h: Likewise.
      	* gimple-low.c: Likewise.
      	* gimple-ssa-strength-reduction.c: Likewise.
      	* gimple-streamer-in.c: Likewise.
      	* gimple.c: Likewise.
      	* gimple.h: Likewise.
      	* gimplify.c: Likewise.
      	* graph.c: Likewise.
      	* graphds.c: Likewise.
      	* graphds.h: Likewise.
      	* graphite-blocking.c: Likewise.
      	* graphite-clast-to-gimple.c: Likewise.
      	* graphite-dependences.c: Likewise.
      	* graphite-interchange.c: Likewise.
      	* graphite-optimize-isl.c: Likewise.
      	* graphite-poly.c: Likewise.
      	* graphite-poly.h: Likewise.
      	* graphite-scop-detection.c: Likewise.
      	* graphite-scop-detection.h: Likewise.
      	* graphite-sese-to-poly.c: Likewise.
      	* graphite.c: Likewise.
      	* godump.c: Likewise.
      	* haifa-sched.c: Likewise.
      	* hw-doloop.c: Likewise.
      	* hw-doloop.h: Likewise.
      	* ifcvt.c: Likewise.
      	* insn-addr.h: Likewise.
      	* ipa-cp.c: Likewise.
      	* ipa-inline-analysis.c: Likewise.
      	* ipa-inline-transform.c: Likewise.
      	* ipa-inline.c: Likewise.
      	* ipa-inline.h: Likewise.
      	* ipa-prop.c: Likewise.
      	* ipa-prop.h: Likewise.
      	* ipa-pure-const.c: Likewise.
      	* ipa-ref-inline.h: Likewise.
      	* ipa-ref.c: Likewise.
      	* ipa-ref.h: Likewise.
      	* ipa-reference.c: Likewise.
      	* ipa-split.c: Likewise.
      	* ipa-utils.c: Likewise.
      	* ipa-utils.h: Likewise.
      	* ipa.c: Likewise.
      	* ira-build.c: Likewise.
      	* ira-color.c: Likewise.
      	* ira-emit.c: Likewise.
      	* ira-int.h: Likewise.
      	* ira.c: Likewise.
      	* loop-invariant.c: Likewise.
      	* loop-unroll.c: Likewise.
      	* lower-subreg.c: Likewise.
      	* lra-lives.c: Likewise.
      	* lra.c: Likewise.
      	* lto-cgraph.c: Likewise.
      	* lto-section-out.c: Likewise.
      	* lto-streamer-in.c: Likewise.
      	* lto-streamer-out.c: Likewise.
      	* lto-streamer.h: Likewise.
      	* lto-symtab.c: Likewise.
      	* mcf.c: Likewise.
      	* modulo-sched.c: Likewise.
      	* omp-low.c: Likewise.
      	* opts-common.c: Likewise.
      	* opts-global.c: Likewise.
      	* opts.c: Likewise.
      	* opts.h: Likewise.
      	* passes.c: Likewise.
      	* predict.c: Likewise.
      	* print-tree.c: Likewise.
      	* profile.c: Likewise.
      	* profile.h: Likewise.
      	* read-rtl.c: Likewise.
      	* ree.c: Likewise.
      	* reg-stack.c: Likewise.
      	* regrename.c: Likewise.
      	* regrename.h: Likewise.
      	* reload.c: Likewise.
      	* reload.h: Likewise.
      	* reload1.c: Likewise.
      	* rtl.h: Likewise.
      	* sched-deps.c: Likewise.
      	* sched-int.h: Likewise.
      	* sdbout.c: Likewise.
      	* sel-sched-dump.c: Likewise.
      	* sel-sched-ir.c: Likewise.
      	* sel-sched-ir.h: Likewise.
      	* sel-sched.c: Likewise.
      	* sese.c: Likewise.
      	* sese.h: Likewise.
      	* statistics.h: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* store-motion.c: Likewise.
      	* tlink.c: Likewise.
      	* toplev.c: Likewise.
      	* trans-mem.c: Likewise.
      	* tree-browser.c: Likewise.
      	* tree-call-cdce.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-cfgcleanup.c: Likewise.
      	* tree-chrec.c: Likewise.
      	* tree-chrec.h: Likewise.
      	* tree-complex.c: Likewise.
      	* tree-data-ref.c: Likewise.
      	* tree-data-ref.h: Likewise.
      	* tree-dfa.c: Likewise.
      	* tree-diagnostic.c: Likewise.
      	* tree-dump.c: Likewise.
      	* tree-eh.c: Likewise.
      	* tree-emutls.c: Likewise.
      	* tree-flow.h: Likewise.
      	* tree-if-conv.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-inline.h: Likewise.
      	* tree-into-ssa.c: Likewise.
      	* tree-iterator.c: Likewise.
      	* tree-loop-distribution.c: Likewise.
      	* tree-mudflap.c: Likewise.
      	* tree-optimize.c: Likewise.
      	* tree-outof-ssa.c: Likewise.
      	* tree-parloops.c: Likewise.
      	* tree-phinodes.c: Likewise.
      	* tree-predcom.c: Likewise.
      	* tree-pretty-print.c: Likewise.
      	* tree-scalar-evolution.c: Likewise.
      	* tree-sra.c: Likewise.
      	* tree-ssa-address.c: Likewise.
      	* tree-ssa-alias.c: Likewise.
      	* tree-ssa-ccp.c: Likewise.
      	* tree-ssa-coalesce.c: Likewise.
      	* tree-ssa-dce.c: Likewise.
      	* tree-ssa-dom.c: Likewise.
      	* tree-ssa-forwprop.c: Likewise.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-live.h: Likewise.
      	* tree-ssa-loop-im.c: Likewise.
      	* tree-ssa-loop-ivcanon.c: Likewise.
      	* tree-ssa-loop-ivopts.c: Likewise.
      	* tree-ssa-loop-manip.c: Likewise.
      	* tree-ssa-loop-niter.c: Likewise.
      	* tree-ssa-loop-prefetch.c: Likewise.
      	* tree-ssa-math-opts.c: Likewise.
      	* tree-ssa-operands.c: Likewise.
      	* tree-ssa-phiopt.c: Likewise.
      	* tree-ssa-phiprop.c: Likewise.
      	* tree-ssa-pre.c: Likewise.
      	* tree-ssa-propagate.c: Likewise.
      	* tree-ssa-reassoc.c: Likewise.
      	* tree-ssa-sccvn.c: Likewise.
      	* tree-ssa-sccvn.h: Likewise.
      	* tree-ssa-strlen.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-ssa-tail-merge.c: Likewise.
      	* tree-ssa-threadedge.c: Likewise.
      	* tree-ssa-threadupdate.c: Likewise.
      	* tree-ssa-uncprop.c: Likewise.
      	* tree-ssa-uninit.c: Likewise.
      	* tree-ssa.c: Likewise.
      	* tree-ssanames.c: Likewise.
      	* tree-stdarg.c: Likewise.
      	* tree-streamer-in.c: Likewise.
      	* tree-streamer-out.c: Likewise.
      	* tree-streamer.c: Likewise.
      	* tree-streamer.h: Likewise.
      	* tree-switch-conversion.c: Likewise.
      	* tree-vect-data-refs.c: Likewise.
      	* tree-vect-generic.c: Likewise.
      	* tree-vect-loop-manip.c: Likewise.
      	* tree-vect-loop.c: Likewise.
      	* tree-vect-patterns.c: Likewise.
      	* tree-vect-slp.c: Likewise.
      	* tree-vect-stmts.c: Likewise.
      	* tree-vectorizer.c: Likewise.
      	* tree-vectorizer.h: Likewise.
      	* tree-vrp.c: Likewise.
      	* tree.c: Likewise.
      	* tree.h: Likewise.
      	* value-prof.c: Likewise.
      	* value-prof.h: Likewise.
      	* var-tracking.c: Likewise.
      	* varasm.c: Likewise.
      	* varpool.c: Likewise.
      	* vmsdbgout.c: Likewise.
      	* config/bfin/bfin.c: Likewise.
      	* config/c6x/c6x.c: Likewise.
      	* config/darwin.c: Likewise.
      	* config/i386/i386.c: Likewise.
      	* config/ia64/ia64.c: Likewise.
      	* config/mep/mep.c: Likewise.
      	* config/mips/mips.c: Likewise.
      	* config/pa/pa.c: Likewise.
      	* config/rs6000/rs6000-c.c: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      	* config/rx/rx.c: Likewise.
      	* config/spu/spu-c.c: Likewise.
      	* config/vms/vms.c: Likewise.
      	* config/vxworks.c: Likewise.
      	* config/epiphany/resolve-sw-modes.c: Likewise.
      
      From-SVN: r193595
      Diego Novillo committed
  16. 24 Sep, 2012 1 commit
    • Finish conversion of uses of double_int to the new API. · 9be0ac8c
      Some old functionality required new interfaces, and these have been added to
      double-int.[hc]:
      
        double_int::from_pair - static constructor function
        wide_mul_with_sign - double-wide multiply instruction
        sub_with_overflow - subtraction with overlow testing
        neg_with_overflow - negation with overlow testing
        divmod_with_overflow - div and mod with overlow testing
      
      This patch corrects the bootstrap problem on HPPA, via the addition of
      sub_with_overflow.  (The overflow properties of negation and addition are
      different from subtraction.)
      
      The prior two generations of the interface have been removed.
      
      Some of these old interfaces are still used as static implementation in
      double-int.c.
      
      The changed compiler appears 0.321% faster with 80% confidence of being faster.
      
      Tested on x86_64, HPPA, and SPARC.  However, there are changes to the avr
      config files, and I have not tested those.
      
      
      Index: gcc/java/ChangeLog
      
      2012-09-24  Lawrence Crowl  <crowl@google.com>
      
      	* decl.c (java_init_decl_processing): Change to new double_int API.
      	* jcf-parse.c (get_constant): Likewise.
      	* boehm.c (mark_reference_fields): Likewise.
      	(get_boehm_type_descriptor): Likewise.
      
      Index: gcc/ChangeLog
      
      2012-09-24  Lawrence Crowl  <crowl@google.com>
      
      	* double-int.h (double_int::from_pair): New.
      	(double_int::wide_mul_with_sign): New.
      	(double_int::sub_with_overflow): New.
      	(double_int::neg_with_overflow): New.
      	(double_int::divmod_with_overflow): New.
      	(shwi_to_double_int): Remove.
      	(uhwi_to_double_int): Remove.
      	(double_int_to_shwi): Remove.
      	(double_int_to_uhwi): Remove.
      	(double_int_fits_in_uhwi_p): Remove.
      	(double_int_fits_in_shwi_p): Remove.
      	(double_int_fits_in_hwi_p): Remove.
      	(double_int_mul): Remove.
      	(double_int_mul_with_sign): Remove.
      	(double_int_add): Remove.
      	(double_int_sub): Remove.
      	(double_int_neg): Remove.
      	(double_int_div): Remove.
      	(double_int_sdiv): Remove.
      	(double_int_udiv): Remove.
      	(double_int_mod): Remove.
      	(double_int_smod): Remove.
      	(double_int_umod): Remove.
      	(double_int_divmod): Remove.
      	(double_int_sdivmod): Remove.
      	(double_int_udivmod): Remove.
      	(double_int_multiple_of): Remove.
      	(double_int_setbit): Remove.
      	(double_int_ctz): Remove.
      	(double_int_not): Remove.
      	(double_int_ior): Remove.
      	(double_int_and): Remove.
      	(double_int_and_not): Remove.
      	(double_int_xor): Remove.
      	(double_int_lshift): Remove.
      	(double_int_rshift): Remove.
      	(double_int_lrotate): Remove.
      	(double_int_rrotate): Remove.
      	(double_int_negative_p): Remove.
      	(double_int_cmp): Remove.
      	(double_int_scmp): Remove.
      	(double_int_ucmp): Remove.
      	(double_int_max): Remove.
      	(double_int_smax): Remove.
      	(double_int_umax): Remove.
      	(double_int_min): Remove.
      	(double_int_smin): Remove.
      	(double_int_umin): Remove.
      	(double_int_ext): Remove.
      	(double_int_sext): Remove.
      	(double_int_zext): Remove.
      	(double_int_mask): Remove.
      	(double_int_max_value): Remove.
      	(double_int_min_value): Remove.
      	(double_int_zero_p): Remove.
      	(double_int_one_p): Remove.
      	(double_int_minus_one_p): Remove.
      	(double_int_equal_p): Remove.
      	(double_int_popcount): Remove.
      	(extern add_double_with_sign): Remove.
      	(#define add_double): Remove.
      	(extern neg_double): Remove.
      	(extern mul_double_with_sign): Remove.
      	(extern mul_double_wide_with_sign): Remove.
      	(#define mul_double): Remove.
      	(extern lshift_double): Remove.
      	(extern div_and_round_double): Remove.
      	* double-int.c (add_double_with_sign): Make static.
      	(#defined add_double): Localized from header.
      	(neg_double): Make static.
      	(mul_double_with_sign): Make static.
      	(mul_double_wide_with_sign): Make static.
      	(#defined mul_double): Localized from header.
      	(lshift_double): Make static.
      	(div_and_round_double): Make static.
      	(double_int::wide_mul_with_sign): New.
      	(double_int::sub_with_overflow): New.
      	(double_int::neg_with_overflow): New.
      	(double_int::divmod_with_overflow): New.
      	* emit-rtl.c (init_emit_once): Change to new double_int API.
      	* explow.c (plus_constant): Likewise.
      	* expmed.c (choose_multiplier): Likewise.
      	* fold-const.c (#define OVERFLOW_SUM_SIGN): Remove.
      	(int_const_binop_1): Change to new double_int API.
      	(fold_div_compare): Likewise.
      	(maybe_canonicalize_comparison): Likewise.
      	(pointer_may_wrap_p): Likewise.
      	(fold_negate_const): Likewise.
      	(fold_abs_const): Likewise.
      	* simplify-rtx.c (simplify_const_unary_operation): Likewise.
      	(simplify_const_binary_operation): Likewise.
      	* tree-chrec.c (tree_fold_binomial): Likewise.
      	* tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
      	* config/sparc/sparc.c (sparc_fold_builtin): Likewise.
      	* config/avr/avr.c (avr_double_int_push_digit): Likewise.
      	(avr_map): Likewise.
      	(avr_map_decompose): Likewise.
      	(avr_out_insert_bits): Likewise.
      
      Index: gcc/cp/ChangeLog
      
      2012-09-24  Lawrence Crowl  <crowl@google.com>
      
      	* init.c (build_new_1): Change to new double_int API.
      	* decl.c (build_enumerator): Likewise.
      	* typeck2.c (process_init_constructor_array): Likewise.
      	* mangle.c (write_array_type): Likewise.
      
      Index: gcc/fortran/ChangeLog
      
      2012-09-24  Lawrence Crowl  <crowl@google.com>
      
      	* trans-expr.c (gfc_conv_cst_int_power): Change to new double_int API.
      	* target-memory.c (gfc_interpret_logical): Likewise.
      
      From-SVN: r191675
      Lawrence Crowl committed
  17. 11 Jul, 2012 1 commit
    • expr.h (can_move_by_pieces): Move prototype from here ... · 6bdf3519
      gcc/
      	* expr.h (can_move_by_pieces): Move prototype from here ...
      	* tree.h (can_move_by_pieces): ... to here.
      	* optabs.h (set_widening_optab_handler): Use XCNEW.
      	* gimplify.c: Do not include expr.h.
      
      	* toplev.c: Do not include dwarf2out.h.
      	* config/ia64/ia64.c: Likewise.
      	* config/sparc/sparc.c: Likewise.
      	* config/sparc/t-sparc (sparc.o): Fix dependencies.
      
      	* Makefile.in (toplev.o): Fix dependencies
      	(c-family/c-gimplify.o): Likewise.
      	(c-family/c-common.o): Likewise.
      
      c-family/
      	* c-gimplify.c: Do not include basic-block.h.
      	* c-common.c: Do not include linfuncs.h.
      
      cp/
      	* method.c: Do not include tree-pass.h.
      
      fortran/
      	* trans.c: Do not include defaults.h.
      	* trans-intrinsic.c: Likewise.
      
      java/
      	* decl.c: Do not include libfuncs.h.
      	* class.c: Do not include defaults.h.
      	* jvgenmain.c: Likewise.
      	* magnle.c: Likewise.
      	* Make-lang.in (decl.o): Fix dependencies.
      
      From-SVN: r189425
      Steven Bosscher committed
  18. 11 Oct, 2011 1 commit
  19. 06 Jul, 2011 1 commit
    • tree.c (build_common_tree_nodes_2): Merge with build_common_tree_nodes. · 1a072294
      2011-07-06  Richard Guenther  <rguenther@suse.de>
      
      	* tree.c (build_common_tree_nodes_2): Merge with
      	build_common_tree_nodes.
      	* tree.h (build_common_tree_nodes): Adjust prototype.
      	(build_common_tree_nodes_2): Remove.
      	* doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
      	* doc/tm.texi (lang_hooks.builtin_function): Regenerate.
      
      	c-family/
      	* c-common.c (c_common_nodes_and_builtins):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	fortran/
      	* f95-lang.c (gfc_init_decl_processing):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	go/
      	* go-lang.c (go_langhook_init):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	java/
      	* decl.c (java_init_decl_processing):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	lto/
      	* lto-lang.c (lto_init):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	ada/
      	* gcc-interface/misc.c (gnat_init):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      	Re-initialize boolean_false_node.
      
      From-SVN: r175906
      Richard Guenther committed
  20. 07 Jun, 2011 2 commits
    • decl.c (java_init_decl_processing): Call build_common_nodes, build_common_nodes_2 at the beginning. · c3c79fc5
      2011-06-07  Richard Guenther  <rguenther@suse.de>
      
      	* decl.c (java_init_decl_processing): Call build_common_nodes,
      	build_common_nodes_2 at the beginning.  Remove then duplicate
      	initializations.
      
      From-SVN: r174747
      Richard Guenther committed
    • tree.c (build_common_tree_nodes): Also initialize size_type_node. · 009db074
      2011-06-07  Richard Guenther  <rguenther@suse.de>
      
      	* tree.c (build_common_tree_nodes): Also initialize size_type_node.
      	Call set_sizetype from here.
      
      	c-family/
      	* c-common.c (c_common_nodes_and_builtins): Do not set
      	size_type_node or call set_sizetype.
      
      	go/
      	* go-lang.c (go_langhook_init): Do not set
      	size_type_node or call set_sizetype.
      
      	fortran/
      	* f95-lang.c (gfc_init_decl_processing): Do not set
      	size_type_node or call set_sizetype.
      
      	java/
      	* decl.c (java_init_decl_processing): Properly initialize
      	size_type_node.
      
      	lto/
      	* lto-lang.c (lto_init): Do not set
      	size_type_node or call set_sizetype.
      
      	ada/
      	* gcc-interface/misc.c (gnat_init): Do not set
      	size_type_node or call set_sizetype.
      
      From-SVN: r174743
      Richard Guenther committed
  21. 26 May, 2011 1 commit
    • make TS_BLOCK a substructure of TS_BASE · 92e948a8
      make TS_BLOCK a substructure of TS_BASE
      gcc/
      	* tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
      	TS_BASE instead of TS_COMMON.
      	(find_decls_types_r): Check for TS_TYPED structure before looking at
      	TREE_TYPE.
      	* tree.h (struct tree_block): Inherit from tree_base, not tree_common.
      	Add chain field.
      	(BLOCK_CHAIN): Use new chain field.
      
      gcc/c-family/
      	* c-common.c (warning_candidate_p): Check for BLOCKs.
      
      gcc/java/
      	* decl.c (poplevel): Don't access TREE_TYPE of BLOCKs.
      	* expr.c (build_jni_stub): Likewise.
      
      From-SVN: r174300
      Nathan Froyd committed
  22. 07 May, 2011 1 commit
    • langhooks.h (lang_hooks_for_types): Change global_bindings_p's return type to… · c99c0026
      langhooks.h (lang_hooks_for_types): Change global_bindings_p's return type to bool and adjust comment.
      
      2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
      	type to bool and adjust comment.
      	* fold-const.c (fold_range_test): Adjust call to global_bindings_p.
      	(fold_mathfn_compare): Remove calls to global_bindings_p.
      	(fold_inf_compare): Likewise.
      	* stor-layout.c (variable_size): Adjust call to global_bindings_p.
      	* c-tree.h (global_bindings_p): Adjust prototype.
      	* c-decl.c (global_bindings_p): Return bool and simplify.
      ada/
      	* gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
      	* gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
      cp/
      	* name-lookup.h (global_bindings_p): Adjust prototype.
      	* name-lookup.c (global_bindings_p): Return bool.
      fortran/
      	* f95-lang.c (global_bindings_p): Return bool and simplify.
      go/
      	* go-lang.c (global_bindings_p): Return bool and simplify.
      java/
      	* java-tree.h (global_bindings_p): Adjust prototype.
      	* decl.c (global_bindings_p): Return bool.
      lto/
      	* lto-lang.c (global_bindings_p): Return bool.
      
      From-SVN: r173535
      Eric Botcazou committed
  23. 14 Apr, 2011 1 commit
    • utils.c (gnat_poplevel): Use block_chainon. · 61e46a7d
      gcc/ada/
      	* gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
      
      gcc/
      	* function.h (block_chainon): Declare.
      	* function.c (block_chainon): Define.
      
      gcc/cp/
      	* decl.c (poplevel): Use block_chainon.
      
      gcc/fortran//
      	* f95-lang.c (poplevel): Use BLOCK_CHAIN and block_chainon.
      
      gcc/java/
      	* decl.c (poplevel): Use BLOCK_CHAIN and block_chainon.
      
      From-SVN: r172418
      Nathan Froyd committed
  24. 11 Apr, 2011 1 commit
    • cgraph.c (cgraph_local_info): Call cgraph_get_node instead of… · 9f9ebcdf
      cgraph.c (cgraph_local_info): Call cgraph_get_node instead of cgraph_node,	handle NULL return value.
      
      2011-04-11  Martin Jambor  <mjambor@suse.cz>
      
      gcc/
      	* cgraph.c (cgraph_local_info): Call cgraph_get_node instead
      	of cgraph_node,	handle NULL return value.
      	(cgraph_global_info): Likewise.
      	(cgraph_rtl_info): Likewise.
      	* tree-inline.c (estimate_num_insns): Likewise.
      	* gimplify.c (unshare_body): Likewise.
      	(unvisit_body): Likewise.
      	(gimplify_body): Likewise.
      	* predict.c (optimize_function_for_size_p): Likewise.
      	* tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
      	(call_may_clobber_ref_p_1): Likewise.
      	* varasm.c (function_section_1): Likewise.
      	(assemble_start_function): Likewise.
      
      gcc/java/
      	* decl.c (java_mark_decl_local): Call cgraph_get_node instead of
      	cgraph_node and handle returned NULL.
      
      From-SVN: r172258
      Martin Jambor committed
  25. 21 Jan, 2011 1 commit
    • re PR bootstrap/47215 (Failed to bootstrap) · 1dd584a2
      2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
      
              PR bootstrap/47215
              * decl.c (java_init_decl_processing): Remove
              va_list_type_node related type initializations.
      
      2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
      
      	PR bootstrap/47215
      	* config/i386/i386.c (ix86_local_alignment): Handle
      	case for va_list_type_node is nil.
      	(ix86_canonical_va_list_type): Likewise.
      
      From-SVN: r169080
      Kai Tietz committed
  26. 11 Jan, 2011 1 commit
  27. 07 Jan, 2011 2 commits
  28. 15 Dec, 2010 1 commit
  29. 11 Oct, 2010 1 commit
  30. 15 Jul, 2010 1 commit
    • tree.h (DECL_CHAIN): Define. · 910ad8de
      gcc/
      	* tree.h (DECL_CHAIN): Define.
      	* alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
      	* c-decl.c: Likewise.
      	* c-parser.c: Likewise.
      	* c-typeck.c: Likewise.
      	* cfgexpand.c: Likewise.
      	* cgraph.c: Likewise.
      	* cgraphunit.c: Likewise.
      	* combine.c: Likewise.
      	* config/alpha/alpha.c: Likewise.
      	* config/arm/arm.c: Likewise.
      	* config/frv/frv.c: Likewise.
      	* config/i386/i386.c: Likewise.
      	* config/i386/winnt-cxx.c: Likewise.
      	* config/ia64/ia64.c: Likewise.
      	* config/iq2000/iq2000.c: Likewise.
      	* config/mep/mep.c: Likewise.
      	* config/mips/mips.c: Likewise.
      	* config/pa/som.h: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      	* config/s390/s390.c: Likewise.
      	* config/sh/sh.c: Likewise.
      	* config/sh/symbian-cxx.c: Likewise.
      	* config/sparc/sparc.c: Likewise.
      	* config/spu/spu.c: Likewise.
      	* config/stormy16/stormy16.c: Likewise.
      	* config/vxworks.c: Likewise.
      	* config/xtensa/xtensa.c: Likewise.
      	* coverage.c: Likewise.
      	* dbxout.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* expr.c: Likewise.
      	* function.c: Likewise.
      	* gimple-low.c: Likewise.
      	* gimple-pretty-print.c: Likewise.
      	* gimplify.c: Likewise.
      	* integrate.c: Likewise.
      	* ipa-inline.c: Likewise.
      	* ipa-prop.c: Likewise.
      	* ipa-split.c: Likewise.
      	* ipa-struct-reorg.c: Likewise.
      	* ipa-type-escape.c: Likewise.
      	* langhooks.c: Likewise.
      	* lto-cgraph.c: Likewise.
      	* omp-low.c: Likewise.
      	* stor-layout.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-complex.c: Likewise.
      	* tree-dfa.c: Likewise.
      	* tree-dump.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-mudflap.c: Likewise.
      	* tree-nested.c: Likewise.
      	* tree-object-size.c: Likewise.
      	* tree-pretty-print.c: Likewise.
      	* tree-sra.c: Likewise.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-loop-niter.c: Likewise.
      	* tree-ssa-math-opts.c: Likewise.
      	* tree-ssa-reassoc.c: Likewise.
      	* tree-ssa-sccvn.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-tailcall.c: Likewise.
      	* tree-vrp.c: Likewise.
      	* tree.c: Likewise.
      	* var-tracking.c: Likewise.
      	* varasm.c: Likewise.
      
      gcc/ada/
      	* gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
      	* gcc-interface/trans.c: Likewise.
      	* gcc-interface/utils.c: Likewise.
      	* gcc-interface/utils2.c: Likewise.
      
      gcc/c-family/
      	* c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
      	* c-format.c: Likewise.
      
      gcc/cp/
      	* cp-tree.h: Carefully replace TREE_CHAIN with DECL_CHAIN.
      	* call.c: Likewise.
      	* class.c: Likewise.
      	* cp-gimplify.c: Likewise.
      	* decl.c: Likewise.
      	* decl2.c: Likewise.
      	* init.c: Likewise.
      	* mangle.c: Likewise.
      	* name-lookup.c: Likewise.
      	* optimize.c: Likewise.
      	* parser.c: Likewise.
      	* pt.c: Likewise.
      	* rtti.c: Likewise.
      	* search.c: Likewise.
      	* semantics.c: Likewise.
      	* typeck.c: Likewise.
      	* typeck2.c: Likewise.
      
      gcc/fortran/
      	* f95-lang.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
      	* trans-common.c: Likewise.
      	* trans-decl.c: Likewise.
      	* trans-types.c: Likewise.
      	* trans.c: Likewise.
      
      gcc/java/
      	* java-tree.h: Carefully replace TREE_CHAIN with DECL_CHAIN.
      	* boehm.c: Likewise.
      	* class.c: Likewise.
      	* decl.c: Likewise.
      	* expr.c: Likewise.
      	* jcf-parse.c: Likewise.
      	* typeck.c: Likewise.
      	* verify-glue.c: Likewise.
      
      gcc/objc/
      	* objc-act.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
      
      gcc/testsuite/
      	* g++.dg/plugin/attribute_plugin.c: Carefully replace TREE_CHAIN
      	with DECL_CHAIN.
      
      From-SVN: r162223
      Nathan Froyd committed
  31. 08 Jul, 2010 1 commit
    • toplev.h: Do not include diagnostic-core.h. · 718f9c0f
      2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	* toplev.h: Do not include diagnostic-core.h.
      	Include diagnostic-core.h in every file that includes toplev.h.
      	* c-tree.h: Do not include toplev.h.
      	* pretty-print.h: Update comment.
      	* Makefile.in: Update dependencies.
      	* alias.c: Include diagnostic-core.h in every file that includes
      	toplev.h.
      	* attribs.c: Likewise.
      	* auto-inc-dec.c: Likewise.
      	* bb-reorder.c: Likewise.
      	* bt-load.c: Likewise.
      	* caller-save.c: Likewise.
      	* calls.c: Likewise.
      	* cfg.c: Likewise.
      	* cfganal.c: Likewise.
      	* cfgbuild.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* cfghooks.c: Likewise.
      	* cfgloop.c: Likewise.
      	* combine.c: Likewise.
      	* config/alpha/alpha.c: Likewise.
      	* config/arc/arc.c: Likewise.
      	* config/arm/arm.c: Likewise.
      	* config/arm/pe.c: Likewise.
      	* config/avr/avr.c: Likewise.
      	* config/bfin/bfin.c: Likewise.
      	* config/cris/cris.c: Likewise.
      	* config/crx/crx.c: Likewise.
      	* config/darwin-c.c: Likewise.
      	* config/darwin.c: Likewise.
      	* config/fr30/fr30.c: Likewise.
      	* config/frv/frv.c: Likewise.
      	* config/h8300/h8300.c: Likewise.
      	* config/host-darwin.c: Likewise.
      	* config/i386/i386.c: Likewise.
      	* config/i386/netware.c: Likewise.
      	* config/i386/nwld.c: Likewise.
      	* config/i386/winnt-cxx.c: Likewise.
      	* config/i386/winnt-stubs.c: Likewise.
      	* config/i386/winnt.c: Likewise.
      	* config/ia64/ia64-c.c: Likewise.
      	* config/ia64/ia64.c: Likewise.
      	* config/iq2000/iq2000.c: Likewise.
      	* config/lm32/lm32.c: Likewise.
      	* config/m32c/m32c-pragma.c: Likewise.
      	* config/m32c/m32c.c: Likewise.
      	* config/m32r/m32r.c: Likewise.
      	* config/m68hc11/m68hc11.c: Likewise.
      	* config/m68k/m68k.c: Likewise.
      	* config/mcore/mcore.c: Likewise.
      	* config/mep/mep-pragma.c: Likewise.
      	* config/mep/mep.c: Likewise.
      	* config/mmix/mmix.c: Likewise.
      	* config/mn10300/mn10300.c: Likewise.
      	* config/moxie/moxie.c: Likewise.
      	* config/pa/pa.c: Likewise.
      	* config/pdp11/pdp11.c: Likewise.
      	* config/picochip/picochip.c: Likewise.
      	* config/rs6000/rs6000-c.c: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      	* config/rx/rx.c: Likewise.
      	* config/s390/s390.c: Likewise.
      	* config/score/score.c: Likewise.
      	* config/score/score3.c: Likewise.
      	* config/score/score7.c: Likewise.
      	* config/sh/sh.c: Likewise.
      	* config/sh/symbian-base.c: Likewise.
      	* config/sh/symbian-c.c: Likewise.
      	* config/sh/symbian-cxx.c: Likewise.
      	* config/sol2-c.c: Likewise.
      	* config/sol2.c: Likewise.
      	* config/sparc/sparc.c: Likewise.
      	* config/spu/spu.c: Likewise.
      	* config/stormy16/stormy16.c: Likewise.
      	* config/v850/v850-c.c: Likewise.
      	* config/v850/v850.c: Likewise.
      	* config/vax/vax.c: Likewise.
      	* config/vxworks.c: Likewise.
      	* config/xtensa/xtensa.c: Likewise.
      	* convert.c: Likewise.
      	* cse.c: Likewise.
      	* cselib.c: Likewise.
      	* dbgcnt.c: Likewise.
      	* dbxout.c: Likewise.
      	* ddg.c: Likewise.
      	* dominance.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* explow.c: Likewise.
      	* expmed.c: Likewise.
      	* fixed-value.c: Likewise.
      	* fold-const.c: Likewise.
      	* fwprop.c: Likewise.
      	* gcse.c: Likewise.
      	* ggc-common.c: Likewise.
      	* ggc-page.c: Likewise.
      	* ggc-zone.c: Likewise.
      	* gimple-low.c: Likewise.
      	* gimplify.c: Likewise.
      	* graph.c: Likewise.
      	* haifa-sched.c: Likewise.
      	* ifcvt.c: Likewise.
      	* implicit-zee.c: Likewise.
      	* integrate.c: Likewise.
      	* ira-build.c: Likewise.
      	* ira-color.c: Likewise.
      	* ira-conflicts.c: Likewise.
      	* ira-costs.c: Likewise.
      	* ira-lives.c: Likewise.
      	* ira.c: Likewise.
      	* lists.c: Likewise.
      	* loop-doloop.c: Likewise.
      	* loop-iv.c: Likewise.
      	* lto-opts.c: Likewise.
      	* lto-symtab.c: Likewise.
      	* main.c: Likewise.
      	* modulo-sched.c: Likewise.
      	* optabs.c: Likewise.
      	* params.c: Likewise.
      	* plugin.c: Likewise.
      	* postreload-gcse.c: Likewise.
      	* postreload.c: Likewise.
      	* predict.c: Likewise.
      	* profile.c: Likewise.
      	* real.c: Likewise.
      	* regcprop.c: Likewise.
      	* reginfo.c: Likewise.
      	* regmove.c: Likewise.
      	* reorg.c: Likewise.
      	* resource.c: Likewise.
      	* rtl.c: Likewise.
      	* rtlanal.c: Likewise.
      	* sched-deps.c: Likewise.
      	* sched-ebb.c: Likewise.
      	* sched-rgn.c: Likewise.
      	* sdbout.c: Likewise.
      	* sel-sched-dump.c: Likewise.
      	* sel-sched-ir.c: Likewise.
      	* simplify-rtx.c: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* store-motion.c: Likewise.
      	* targhooks.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-cfgcleanup.c: Likewise.
      	* tree-dump.c: Likewise.
      	* tree-eh.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-nomudflap.c: Likewise.
      	* tree-object-size.c: Likewise.
      	* tree-optimize.c: Likewise.
      	* tree-outof-ssa.c: Likewise.
      	* tree-phinodes.c: Likewise.
      	* tree-profile.c: Likewise.
      	* tree-ssa-ccp.c: Likewise.
      	* tree-ssa-coalesce.c: Likewise.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-loop-niter.c: Likewise.
      	* tree-ssa-loop-prefetch.c: Likewise.
      	* tree-ssa-loop.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-ssa-uninit.c: Likewise.
      	* tree-ssa.c: Likewise.
      	* tree-vect-data-refs.c: Likewise.
      	* tree-vect-loop-manip.c: Likewise.
      	* tree-vect-loop.c: Likewise.
      	* tree-vect-patterns.c: Likewise.
      	* tree-vect-stmts.c: Likewise.
      	* tree-vrp.c: Likewise.
      	* varasm.c: Likewise.
      	* vec.c: Likewise.
      	* web.c: Likewise.
      	* xcoffout.c: Likewise.
      
      c-family/
      	* c-common.h: Include diagnostic-core.h. Error if already
      	included.
      	* c-semantics.c: Do not define GCC_DIAG_STYLE here.
      cp/
      	* cp-tree.h: Do not include toplev.h.
      	
      java/
      	* boehm.c: Include diagnostic-core.h in every file that includes
      	toplev.h.
      	* class.c: Likewise.
      	* constants.c: Likewise.
      	* decl.c: Likewise.
      	* except.c: Likewise.
      	* expr.c: Likewise.
      	* jcf-parse.c: Likewise.
      	* mangle.c: Likewise.
      	* mangle_name.c: Likewise.
      	* resource.c: Likewise.
      	* typeck.c: Likewise.
      	* verify-glue.c: Likewise.
      ada/
      	* gcc-interface/utils.c: Include diagnostic-core.h in every file
      	that includes toplev.h.
      lto/
      	* lto-coff.c: Include diagnostic-core.h in every file that
      	includes toplev.h.
      	* lto-elf.c: Likewise.
      	* lto-lang.c: Likewise.
      	* lto-macho.c: Likewise.
      
      From-SVN: r161943
      Manuel López-Ibáñez committed
  32. 23 Jun, 2010 1 commit
  33. 08 Jun, 2010 1 commit
    • utils.c (init_gnat_to_gnu): Use typed GC allocation. · a9429e29
      gcc/ada:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
      	allocation.
      	(init_dummy_type): Likewise.
      	(gnat_pushlevel): Likewise.
      
      	* gcc-interface/trans.c (Attribute_to_gnu): Likewise.
      	(Subprogram_Body_to_gnu): Likewise.
      	(Compilation_Unit_to_gnu): Likewise.
      	(start_stmt_group): Likewise.
      	(extract_encoding): Likewise.
      	(decode_name): Likewise.
      
      	* gcc-interface/misc.c (gnat_printable_name): Likewise.
      
      	* gcc-interface/decl.c (annotate_value): Likewise.
      
      	* gcc-interface/ada-tree.h (struct lang_type): Add variable_size
      	GTY option.
      	(struct lang_decl): Likewise.
      	(SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
      	(SET_DECL_LANG_SPECIFIC): Likewise.
      
      gcc/c-family:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* c-pragma.c (push_alignment): Use typed GC allocation.
      	(handle_pragma_push_options): Likewise.
      
      	* c-common.c (parse_optimize_options): Likewise.
      
      	* c-common.h (struct sorted_fields_type): Add variable_size GTY
      	option.
      
      gcc/cp:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* typeck2.c (abstract_virtuals_error): Likewise.
      
      	* pt.c (maybe_process_partial_specialization): Likewise.
      	(register_specialization): Likewise.
      	(add_pending_template): Likewise.
      	(lookup_template_class): Likewise.
      	(push_tinst_level): Likewise.
      
      	* parser.c (cp_lexer_new_main): Likewise.
      	(cp_lexer_new_from_tokens): Likewise.
      	(cp_token_cache_new): Likewise.
      	(cp_parser_context_new): Likewise.
      	(cp_parser_new): Likewise.
      	(cp_parser_nested_name_specifier_opt): Likewise.
      	(cp_parser_template_id): Likewise.
      
      	* name-lookup.c (binding_entry_make): Likewise.
      	(binding_table_construct): Likewise.
      	(binding_table_new): Likewise.
      	(cxx_binding_make): Likewise.
      	(pushdecl_maybe_friend): Likewise.
      	(begin_scope): Likewise.
      	(push_to_top_level): Likewise.
      
      	* lex.c (init_reswords): Likewise.
      	(retrofit_lang_decl): Likewise.
      	(cxx_dup_lang_specific_decl): Likewise.
      	(copy_lang_type): Likewise.
      	(cxx_make_type): Likewise.
      
      	* decl.c (make_label_decl): Likewise.
      	(check_goto): Likewise.
      	(start_preparsed_function): Likewise.
      	(save_function_data): Likewise.
      
      	* cp-tree.h (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
      
      	* cp-objcp-common.c (decl_shadowed_for_var_insert): Likewise.
      
      	* class.c (finish_struct_1): Likewise.
      
      	* cp-tree.h (struct lang_type): Add variable_size GTY option.
      	(struct lang_decl): Likewise.
      
      	* parser.c (cp_parser_new): Update comment to not reference
      	ggc_alloc.
      
      gcc/fortran:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* trans-types.c (gfc_get_nodesc_array_type): Use typed GC
      	allocation.
      	(gfc_get_array_type_bounds): Likewise.
      
      	* trans-decl.c (gfc_allocate_lang_decl): Likewise.
      	(gfc_find_module): Likewise.
      
      	* f95-lang.c (pushlevel): Likewise.
      
      	* trans.h (struct lang_type): Add variable_size GTY option.
      	(struct lang_decl): Likewise.
      
      gcc/java:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* jcf-reader.c (jcf_parse_constant_pool): Use typed GC allocation.
      
      	* jcf-parse.c (java_parse_file): Likewise.
      	(process_zip_dir): Likewise.
      
      	* java-tree.h (MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC): Likewise.
      	(MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Likewise.
      
      	* expr.c (add_type_assertion): Likewise.
      
      	* decl.c (make_binding_level): Likewise.
      	(java_dup_lang_specific_decl): Likewise.
      
      	* constants.c (set_constant_entry): Likewise.
      	(cpool_for_class): Likewise.
      
      	* class.c (add_method_1): Likewise.
      	(java_treetreehash_new): Likewise.
      
      	* java-tree.h (struct lang_type): Add variable_size GTY option.
      	(struct lang_decl): Likewise.
      
      	* jch.h (struct cpool_entry): Likewise.
      
      	* java-tree.h (java_treetreehash_create): Remove parameter ggc.
      
      	* except.c (prepare_eh_table_type): Update
      	java_treetreehash_create call.
      
      	* class.c (add_method_1): Update java_treetreehash_create call.
      	(java_treetreehash_create): Remove parameter gc.  Use
      	htab_create_ggc.
      
      gcc/lto:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* lto.c (lto_read_in_decl_state): Use typed GC allocation.
      	(lto_file_read): Likewise.
      	(new_partition): Likewise.
      	(read_cgraph_and_symbols): Likewise.
      
      gcc/objc:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use typed GC
      	allocation.
      
      	* objc-act.c (objc_volatilize_decl): Likewise.
      	(objc_build_string_object): Likewise.
      	(hash_init): Likewise.
      	(hash_enter): Likewise.
      	(hash_add_attr): Likewise.
      	(add_class): Likewise.
      	(start_class): Likewise.
      
      gcc/objcp:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* objcp-decl.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use typed GC
      	allocation.
      
      gcc:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
      
      	* doc/gty.texi (GTY Options): Document typed GC allocation and
      	variable_size GTY option.
      
      	* ggc-internal.h: New.
      
      	* ggc.h: Update copyright year.
      	(digit_string): Move to stringpool.c.
      	(ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
      	(gt_pch_save_stringpool, gt_pch_fixup_stringpool)
      	(gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
      	(init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
      	(ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
      	(ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
      	(ggc_force_collect, ggc_get_size, ggc_statistics)
      	(ggc_print_common_statistics): Move to ggc-internal.h.
      	(digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
      	(ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
      	(GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
      	(ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
      	(ggc_min_heapsize_heuristic, ggc_alloc_zone)
      	(ggc_alloc_zone_pass_stat): Remove.
      	(ggc_internal_alloc_stat, ggc_internal_alloc)
      	(ggc_internal_cleared_alloc_stat): New.
      	(GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
      	(ggc_internal_vec_alloc_stat)
      	(ggc_internal_cleared_vec_alloc_stat)
      	(ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
      	(ggc_alloc_atomic_stat, ggc_alloc_atomic)
      	(ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
      	(ggc_cleared_alloc_ptr_array_two_args): New.
      	(htab_create_ggc, splay_tree_new_ggc): Redefine.
      	(ggc_splay_alloc): Change the type of the first argument to
      	enum gt_types_enum.
      	(ggc_alloc_string): Make macro.
      	(ggc_alloc_string_stat): New.
      	(ggc_strdup): Redefine.
      	(rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
      	(ggc_alloc_rtvec_sized): New.
      	(ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
      	(ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
      	(ggc_internal_cleared_alloc_zone_stat)
      	(ggc_internal_zone_alloc_stat)
      	(ggc_internal_zone_cleared_alloc_stat)
      	(ggc_internal_zone_vec_alloc_stat)
      	(ggc_alloc_zone_rtx_def_stat)
      	(ggc_alloc_zone_tree_node_stat)
      	(ggc_alloc_zone_cleared_tree_node_stat)
      	(ggc_alloc_cleared_gimple_statement_d_stat): New.
      
      	* ggc-common.c: Include ggc-internal.h.
      	(ggc_internal_cleared_alloc_stat): Rename from
      	ggc_alloc_cleared_stat.
      	(ggc_realloc_stat): Use ggc_internal_alloc_stat.
      	(ggc_calloc): Remove.
      	(ggc_cleared_alloc_htab_ignore_args): New.
      	(ggc_cleared_alloc_ptr_array_two_args): New.
      	(ggc_splay_alloc): Add obj_type parameter.
      	(init_ggc_heuristics): Formatting fixes.
      
      	* ggc-none.c: Update copyright year.
      	(ggc_alloc_stat): Rename to ggc_alloc_stat.
      	(ggc_alloc_cleared_stat): Rename to
      	ggc_internal_cleared_alloc_stat.
      	(struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
      
      	* ggc-page.c: Update copyright year.  Include ggc-internal.h.
      	Remove references to ggc_alloc in comments.
      	(ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
      	(ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
      	(new_ggc_zone, destroy_ggc_zone): Remove.
      	(struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
      
      	* ggc-zone.c: Include ggc-internal.h.  Remove references to
      	ggc_alloc in comments.
      	(ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
      	(ggc_internal_alloc_zone_pass_stat): New.
      	(ggc_internal_cleared_alloc_zone_stat): New.
      	(ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
      	(ggc_alloc_stat): Rename ggc_internal_alloc_stat.
      	(new_ggc_zone, destroy_ggc_zone): Remove.
      
      	* stringpool.c: Update copyright year.  Include ggc-internal.h
      	(digit_vector): Make static.
      	(digit_string): Moved from ggc.h.
      	(stringpool_ggc_alloc): Use ggc_alloc_atomic.
      	(ggc_alloc_string): Rename to ggc_alloc_string_stat.
      
      	* Makefile.in (GGC_INTERNAL_H): New.
      	(ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
      	$(GGC_INTERNAL_H) to dependencies.
      
      	* gentype.c: Update copyright year.
      	(walk_type): Accept variable_size GTY option.
      	(USED_BY_TYPED_GC_P): New macro.
      	(write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
      	whitespace at the end of strings.
      	(get_type_specifier, variable_size_p): New functions.
      	(alloc_quantity, alloc_zone): New enums.
      	(write_typed_alloc_def): New function.
      	(write_typed_struct_alloc_def): Likewise.
      	(write_typed_typed_typedef_alloc_def): Likewise.
      	(write_typed_alloc_defns): Likewise.
      	(output_typename, write_splay_tree_allocator_def): Likewise.
      	(write_splay_tree_allocators): Likewise.
      	(main): Call write_typed_alloc_defns and
      	write_splay_tree_allocators.
      
      	* lto-streamer.h (lto_file_decl_data_ptr): New.
      
      	* passes.c (order): Define using cgraph_node_ptr.
      
      	* strinpool.c (struct string_pool_data): Declare nested_ptr using
      	ht_identifier_ptr.
      
      	* gimple.h (union gimple_statement_d): Likewise.
      
      	* rtl.h (struct rtx_def): Likewise.
      	(struct rtvec_def): Likewise.
      
      	* tree.h (union tree_node): Likewise.
      
      	* tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
      
      	* cfgloop.c (record_loop_exits): Use htab_create_ggc.
      
      	* tree-scalar-evolution.c (scev_initialize): Likewise.
      
      	* alias.c (record_alias_subset): Update splay_tree_new_ggc call.
      
      	* dwarf2asm.c (dw2_force_const_mem): Likewise.
      
      	* omp-low.c (lower_omp_critical): Likewise.
      
      	* bitmap.h (struct bitmap_head_def): Update comment to not
      	reference ggc_alloc.
      
      	* config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
      
      	* ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
      
      	* ipa-prop.c (duplicate_ggc_array): Rename to
      	duplicate_ipa_jump_func_array.  Use typed GC allocation.
      	(ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
      
      	* gimple.c (gimple_alloc_stat): Use
      	ggc_alloc_cleared_gimple_statement_d_stat.
      
      	* varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
      
      	* tree.c (make_node_stat): Use
      	ggc_alloc_zone_cleared_tree_node_stat.
      	(make_tree_vec_stat): Likewise.
      	(build_vl_exp_stat): Likewise.
      	(copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
      	(make_tree_binfo_stat): Likewise.
      	(tree_cons_stat): Likewise.
      
      	* rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
      	(shallow_copy_rtx_stat): Likewise.
      	(make_node_stat): Likewise.
      
      	* lto-symtab.c: Fix comment.
      
      	* tree-cfg.c (create_bb): Update comment to not reference
      	ggc_alloc_cleared.
      	* tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is
      	value.
      
      	* varpool.c (varpool_node): Use typed GC allocation.
      	(varpool_extra_name_alias): Likewise.
      
      	* varasm.c (emutls_decl): Likewise.
      	(get_unnamed_section): Likewise.
      	(get_noswitch_section): Likewise.
      	(get_section): Likewise.
      	(get_block_for_section): Likewise.
      	(build_constant_desc): Likewise.
      	(create_constant_pool): Likewise.
      	(force_const_mem): Likewise.
      
      	* tree.c (build_vl_exp_stat): Likewise.
      	(build_real): Likewise.
      	(build_string): Likewise.
      	(decl_debug_expr_insert): Likewise.
      	(decl_value_expr_insert): Likewise.
      	(type_hash_add): Likewise.
      	(build_omp_clause): Likewise.
      
      	* tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
      
      	* tree-ssa.c (init_tree_ssa): Likewise.
      
      	* tree-ssa-structalias.c (heapvar_insert): Likewise.
      
      	* tree-ssa-operands.c (ssa_operand_alloc): Likewise.
      
      	* tree-ssa-loop-niter.c (record_estimate): Likewise.
      
      	* tree-ssa-alias.c (get_ptr_info): Likewise.
      
      	* tree-scalar-evolution.c (new_scev_info_str): Likewise.
      
      	* tree-phinodes.c (allocate_phi_node): Likewise.
      
      	* tree-iterator.c (tsi_link_before): Likewise.
      	(tsi_link_after): Likewise.
      
      	* tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
      
      	* tree-dfa.c (create_var_ann): Likewise.
      
      	* tree-cfg.c (create_bb): Likewise.
      
      	* toplev.c (alloc_for_identifier_to_locale): Likewise.
      	(general_init): Likewise.
      
      	* stringpool.c (stringpool_ggc_alloc): Likewise.
      	(gt_pch_save_stringpool): Likewise.
      
      	* sese.c (if_region_set_false_region): Likewise.
      
      	* passes.c (do_per_function_toporder): Likewise.
      
      	* optabs.c (set_optab_libfunc): Likewise.
      	(set_conv_libfunc): Likewise.
      
      	* lto-symtab.c (lto_symtab_register_decl): Likewise.
      
      	* lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
      	(input_eh_region): Likewise.
      	(input_eh_lp): Likewise.
      	(make_new_block): Likewise.
      	(unpack_ts_real_cst_value_fields): Likewise.
      
      	* lto-section-in.c (lto_new_in_decl_state): Likewise.
      
      	* lto-cgraph.c (input_node_opt_summary): Likewise.
      
      	* loop-init.c (loop_optimizer_init): Likewise.
      
      	* lambda.h (lambda_vector_new): Likewise.
      
      	* lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
      
      	* ira.c (update_equiv_regs): Likewise.
      
      	* ipa.c (cgraph_node_set_new): Likewise.
      	(cgraph_node_set_add): Likewise.
      	(varpool_node_set_new): Likewise.
      	(varpool_node_set_add): Likewise.
      
      	* ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
      	(duplicate_ipa_jump_func_array): Likewise.
      	(ipa_read_node_info): Likewise.
      
      	* ipa-cp.c (ipcp_create_replace_map): Likewise.
      
      	* integrate.c (get_hard_reg_initial_val): Likewise.
      
      	* gimple.c (gimple_alloc_stat): Likewise.
      	(gimple_build_omp_for): Likewise.
      	(gimple_seq_alloc): Likewise.
      	(gimple_copy): Likewise.
      
      	* gimple-iterator.c (gsi_insert_before_without_update): Likewise.
      	(gsi_insert_after_without_update): Likewise.
      
      	* function.c (add_frame_space): Likewise.
      	(insert_temp_slot_address): Likewise.
      	(assign_stack_temp_for_type): Likewise.
      	(allocate_struct_function): Likewise.
      	(types_used_by_var_decl_insert): Likewise.
      
      	* except.c (init_eh_for_function): Likewise.
      	(gen_eh_region): Likewise.
      	(gen_eh_region_catch): Likewise.
      	(gen_eh_landing_pad): Likewise.
      	(add_call_site): Likewise.
      
      	* emit-rtl.c (get_mem_attrs): Likewise.
      	(get_reg_attrs): Likewise.
      	(start_sequence): Likewise.
      	(init_emit): Likewise.
      
      	* dwarf2out.c (new_cfi): Likewise.
      	(queue_reg_save): Likewise.
      	(dwarf2out_frame_init): Likewise.
      	(new_loc_descr): Likewise.
      	(find_AT_string): Likewise.
      	(new_die): Likewise.
      	(add_var_loc_to_decl): Likewise.
      	(clone_die): Likewise.
      	(clone_as_declaration): Likewise.
      	(break_out_comdat_types): Likewise.
      	(new_loc_list): Likewise.
      	(loc_descriptor): Likewise.
      	(add_loc_descr_to_each): Likewise.
      	(add_const_value_attribute): Likewise.
      	(tree_add_const_value_attribute): Likewise.
      	(add_comp_dir_attribute): Likewise.
      	(add_name_and_src_coords_attributes): Likewise.
      	(lookup_filename): Likewise.
      	(store_vcall_insn): Likewise.
      	(dwarf2out_init): Likewise.
      
      	* dbxout.c (dbxout_init): Likewise.
      
      	* config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
      
      	* config/sparc/sparc.c (sparc_init_machine_status): Likewise.
      
      	* config/score/score7.c (score7_output_external): Likewise.
      
      	* config/score/score3.c (score3_output_external): Likewise.
      
      	* config/s390/s390.c (s390_init_machine_status): Likewise.
      
      	* config/rs6000/rs6000.c (builtin_function_type): Likewise.
      	(rs6000_init_machine_status): Likewise.
      	(output_toc): Likewise.
      
      	* config/pa/pa.c (pa_init_machine_status): Likewise.
      	(get_deferred_plabel): Likewise.
      
      	* config/moxie/moxie.c (moxie_init_machine_status): Likewise.
      
      	* config/mmix/mmix.c (mmix_init_machine_status): Likewise.
      
      	* config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
      
      	* config/mep/mep.c (mep_init_machine_status): Likewise.
      	(mep_note_pragma_flag): Likewise.
      
      	* config/m32c/m32c.c (m32c_init_machine_status): Likewise.
      
      	* config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
      
      	* config/ia64/ia64.c (ia64_init_machine_status): Likewise.
      
      	* config/i386/winnt.c (i386_pe_record_external_function): Likewise.
      	(i386_pe_maybe_record_exported_symbol): Likewise.
      
      	* config/i386/i386.c (get_dllimport_decl): Likewise.
      	(ix86_init_machine_status): Likewise.
      	(assign_386_stack_local): Likewise.
      
      	* config/frv/frv.c (frv_init_machine_status): Likewise.
      
      	* config/darwin.c (machopic_indirection_name): Likewise.
      
      	* config/cris/cris.c (cris_init_machine_status): Likewise.
      
      	* config/bfin/bfin.c (bfin_init_machine_status): Likewise.
      
      	* config/avr/avr.c (avr_init_machine_status): Likewise.
      
      	* config/arm/arm.c (arm_init_machine_status): Likewise.
      
      	* config/alpha/alpha.c (alpha_init_machine_status): Likewise.
      	(alpha_need_linkage): Likewise.
      	(alpha_use_linkage): Likewise.
      
      	* cgraph.c (cgraph_allocate_node): Likewise.
      	(cgraph_create_edge_1): Likewise.
      	(cgraph_create_indirect_edge): Likewise.
      	(cgraph_add_asm_node): Likewise.
      
      	* cfgrtl.c (init_rtl_bb_info): Likewise.
      
      	* cfgloop.c (alloc_loop): Likewise.
      	(rescan_loop_exit): Likewise.
      
      	* cfg.c (init_flow): Likewise.
      	(alloc_block): Likewise.
      	(unchecked_make_edge): Likewise.
      
      	* c-parser.c (c_parse_init): Likewise.
      	(c_parse_file): Likewise.
      
      	* c-decl.c (bind): Likewise.
      	(record_inline_static): Likewise.
      	(push_scope): Likewise.
      	(make_label): Likewise.
      	(lookup_label_for_goto): Likewise.
      	(finish_struct): Likewise.
      	(finish_enum): Likewise.
      	(c_push_function_context): Likewise.
      
      	* bitmap.c (bitmap_element_allocate): Likewise.
      	(bitmap_gc_alloc_stat): Likewise.
      
      	* alias.c (record_alias_subset): Likewise.
      	(init_alias_analysis): Likewise.
      
      include:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* splay-tree.h: Update copyright years.
      	(splay_tree_s): Document fields.
      	(splay_tree_new_typed_alloc): New.
      
      	* hashtab.h: Update copyright years.
      	(htab_create_typed_alloc): New.
      
      libcpp:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* include/symtab.h (ht_identifier_ptr): New.
      
      libiberty:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* splay-tree.c: Update copyright years.
      	(splay_tree_new_typed_alloc): New.
      	(splay_tree_new_with_allocator): Use it.
      
      	* hashtab.c: Update copyright years.
      	(htab_create_typed_alloc): New.
      	(htab_create_alloc): Use it.
      
      	* functions.texi: Regenerate.
      
      From-SVN: r160425
      Laurynas Biveinis committed
  34. 25 May, 2010 1 commit
    • re PR debug/43260 (Java static class members lack DWARF location info) · 6bb0a66a
      	PR debug/43260
      	* java-tree.h (pending_static_fields): New extern declaration.
      	(java_write_globals): New prototype.
      	* lang.c (LANG_HOOKS_WRITE_GLOBALS): Define.
      	* decl.c (java_mark_class_local): When clearing DECL_EXTERNAL
      	of a static field push it into pending_static_fields vector.
      	* class.c (pending_static_fields): New variable.
      	(add_field): If static field is not DECL_EXTERNAL, push it into
      	pending_static_fields vector.
      	(java_write_globals): New function.
      
      From-SVN: r159828
      Jakub Jelinek committed
  35. 23 May, 2010 1 commit
    • java-gimplify.c: Do not include tm.h, toplev.h. · f67cc87d
      	* java-gimplify.c: Do not include tm.h, toplev.h.
      	* typeck.c: Do not include tm.h.
      	* mangle_name.c: Do not include tm.h.
      	* jcf-dump.c: Do not include tm.h, ggc.h.
      	* class.c: Do not include rtl.h, tm_p.h, target.h, except.h, cgraph.h.
      	* decl.c: Do not include tm.h, rtl.h, function.h, expr.h, except.h,
      	and timevar.h.
      	* jcf-parse.c: Do not include tm.h and tm_p.h.
      	* resource.c: Do not include tm.h, rtl.h, flags.h, obstack.h,
      	target.h, and expr.h.
      	* except.c: Do not include tm.h, rtl.h, function.h.
      	* builtins.c: Do not include convert.h.  Explain why RTL headers
      	have to be included here.
      	* verify-glue.c: Do not include tm.h.
      	* jcf-depend.c: Do not include tm.h.
      	* jcf-reader.c: Include ggc.h.
      	* jcf-io.c: Do not include tm.h, toplev.h.
      	* expr.c: Do not include tm.h, rtl.h, expr.h, except.h, tm_p.h,
      	gimple.h.
      	* lang.c: Do not include rtl.h, expr.h.
      	* Make-lang.in: Update dependencies.
      
      From-SVN: r159764
      Steven Bosscher committed
  36. 21 May, 2010 1 commit
    • tree.h: Include real.h and fixed-value.h as basic datatypes. · 40013784
      gcc/ChangeLog:
      	* tree.h: Include real.h and fixed-value.h as basic datatypes.
      	* dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
      	tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
      	tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
      	tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
      	genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
      	tree-pretty-print.c, tree-loop-distribution.c,
      	tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
      	tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
      	tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
      	tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
      	tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
      	tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
      	tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
      	tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
      	tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
      	tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
      	genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
      	tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
      	gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
      	tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
      	tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
      	store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
      	tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
      	tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
      	tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
      	tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
      	fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
      	tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
      	config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
      	config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
      	config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
      	config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
      	config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
      	config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
      	config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
      	config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
      	config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
      	config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
      	config/score/score7.c, config/score/score.c, config/arm/arm.c,
      	config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
      	config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
      	config/bfin/bfin.c:
      	Clean up redundant includes.
      	* Makefile.in: Update accordingly.
      
      java/ChangeLog:
      	* typeck.c, decl.c, jcf-parse.c, except.c, expr.c:
      
      cp/Changelog:
      	* error.c, tree.c, typeck2.c, cxx-pretty-print.c, mangle.c:
      	Clean up redundant includes.
      
      fortran/ChangeLog:
      	* trans-const.c, trans-types.c, trans-intrinsic.c:
      	Clean up redundant includes.
      
      From-SVN: r159663
      Steven Bosscher committed
  37. 20 May, 2010 1 commit
  38. 18 Apr, 2010 1 commit
    • fold-const.c (fold_comparison): Use ssizetype. · 3b9e5d95
      2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* fold-const.c (fold_comparison): Use ssizetype.
      	* gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
      	* ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
      	* tree-loop-distribution.c (build_size_arg_loc): Likewise.
      	* tree-object-size.c (compute_object_sizes): Use size_type_node.
      
      	* tree.h (initialize_sizetypes): Remove parameter.
      	(build_common_tree_nodes): Remove second parameter.
      	* stor-layout.c (initialize_sizetypes): Remove parameter.
      	Always create an unsigned type.
      	(set_sizetype): Assert that the passed type is unsigned and simplify.
      	* tree.c (build_common_tree_nodes): Remove second parameter.
      	Adjust call to initialize_sizetypes.
      	* c-decl.c (c_init_decl_processing): Remove second argument in call to
      	build_common_tree_nodes.
      cp/
      	* decl.c (cxx_init_decl_processing): Remove second argument in call to
      	build_common_tree_nodes.
      java/
      	* decl.c (java_init_decl_processing): Remove argument in call to
      	initialize_sizetypes
      fortran/
      	* f95-lang.c (gfc_init_decl_processing): Remove second argument in call
      	to build_common_tree_nodes.
      ada/
      	* gcc-interface/misc.c (gnat_init): Remove second argument in call to
      	build_common_tree_nodes.
      lto/
      	* lto-lang.c (lto_init): Remove second argument in call to
      	build_common_tree_nodes.
      
      From-SVN: r158496
      Eric Botcazou committed