summaryrefslogtreecommitdiff
path: root/gcc/ggc-zone.c
Commit message (Collapse)AuthorAgeFilesLines
* 2004-05-04 Paolo Bonzini <bonzini@gnu.org>bonzini2004-05-041-11/+18
| | | | | | | | | | | | | | * ggc-zone.c (ggc_alloc_zone_1): Add MEM_STAT_DECL parameter. Collect overhead information. (ggc_alloc_stat): New name of ggc_alloc. Add MEM_STAT_DECL parameter and pass it through. (ggc_alloc_typed_stat): New name of ggc_alloc_typed. Add MEM_STAT_DECL parameter and pass it through. (ggc_alloc_zone_stat): New name of ggc_alloc_zone. Add MEM_STAT_DECL parameter and pass it through. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81472 138bc75d-0d04-0410-961f-82ee72b054a4
* * bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,kazu2004-04-301-1/+1
| | | | | | | | | | | | | | | | | cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c, reg-stack.c, varasm.c, config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c, config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c, config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c, config/ia64/itanium2.md, config/ip2k/ip2k.c, config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md, config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix comment typos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81345 138bc75d-0d04-0410-961f-82ee72b054a4
* * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.ian2004-03-041-3/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78882 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-01-30 Daniel Berlin <dberlin@dberlin.org>dberlin2004-01-311-7/+26
| | | | | | | * ggc-zone.c (ggc_free): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77019 138bc75d-0d04-0410-961f-82ee72b054a4
* * alias.c, basic-block.h, c-common.c, c-common.h,kazu2004-01-211-1/+2
| | | | | | | | | | | | | | | | | | | | | c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c, calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c, combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c, cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h, defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c, expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c, genautomata.c, genconditions.c, genemit.c, genflags.c, gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c, ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c, langhooks-def.h, langhooks.c, langhooks.h, line-map.c, line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c, ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c, rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h, target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h, unwind.h, varray.c, varray.h: Update copyright. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76302 138bc75d-0d04-0410-961f-82ee72b054a4
* * alias.c: Fix comment typos.kazu2004-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * builtins.c: Likewise. * cfg.c: Likewise. * df.c: Likewise. * dominance.c: Likewise. * dwarf2out.c: Likewise. * emit-rtl.c: Likewise. * expr.c: Likewise. * final.c: Likewise. * fold-const.c: Likewise. * gcse.c: Likewise. * genattrtab.c: Likewise. * genrecog.c: Likewise. * gensupport.c: Likewise. * ggc-zone.c: Likewise. * integrate.c: Likewise. * local-alloc.c: Likewise. * loop.c: Likewise. * recog.c: Likewise. * regmove.c: Likewise. * reg-stack.c: Likewise. * reorg.c: Likewise. * rtlanal.c: Likewise. * rtl.h: Likewise. * sched-ebb.c: Likewise. * simplify-rtx.c: Likewise. * toplev.c: Likewise. * varasm.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75475 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-05 Daniel Berlin <dberlin@dberlin.org>dberlin2004-01-051-423/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS (USING_MMAP): We don't support non-mmap. (struct alloc_chunk): Steal 1 bit from typecode, use it to mark large objects. (struct page_entry): Remove bytes_free. (struct page_table_chain): Remove. (struct globals): Remove page_table member. (loookup_page_table_entry): Function deleted. (set_page_table_entry): Ditto. (ggc_allocated_p): No longer need page table lookups. (ggc_marked_p): Ditto. (alloc_small_page): Don't care about bytes_free anymore. (alloc_large_page): Round up size. (ggc_alloc_zone_1): Mark large objects as such, and calculate their size the new way. Remove page table lookups and setting. (ggc_get_size): Calculate large object size the new way. (sweep_pages): Redo to account for fact that we no longer have bytes_free. (ggc_collect): No longer need to reincrement bytes_free. (ggc_pch_alloc_object): Handle new large objects properly. (ggc_pch_read): Put PCH stuff into it's own uncollected zone. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75438 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-typeck.c: Fix comment typos.kazu2003-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * calls.c: Likewise. * cfgcleanup.c: Likewise. * cgraph.h: Likewise. * dwarfout.c: Likewise. * emit-rtl.c: Likewise. * explow.c: Likewise. * expr.c: Likewise. * flow.c: Likewise. * function.c: Likewise. * gcc.c: Likewise. * ggc-zone.c: Likewise. * ifcvt.c: Likewise. * local-alloc.c: Likewise. * predict.c: Likewise. * pretty-print.c: Likewise. * profile.c: Likewise. * ra-colorize.c: Likewise. * sched-vis.c: Likewise. * stor-layout.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74594 138bc75d-0d04-0410-961f-82ee72b054a4
* * ggc-zone.c (struct alloc_zone): Don't pre-declare, it alreadysteven2003-12-131-21/+45
| | | | | | | | | | | | | comes in with ggc.h. Add a new bool field `dead'. (destroy_ggc_zone): Don't destroy a zone at once. Instead, only set the `dead' flag for the dead zone. Wrap a sanity check in ENABLE_CHECKING. (ggc_collect_1): Always mark and sweep if a zone has the `dead' flag set. (ggc_collect): Free dead zones after collecting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74592 138bc75d-0d04-0410-961f-82ee72b054a4
* * ggc-zone.c: Follow spelling conventions.kazu2003-12-131-1/+1
| | | | | | | | | | * config/rs6000/rs6000.c: Likewise. * pt.c: Likewise. * semantics.c: Likewise. * objc/objc-act.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74590 138bc75d-0d04-0410-961f-82ee72b054a4
* * ggc.h (struct alloc_zone): Move forward declaration up.steven2003-12-011-49/+74
| | | | | | | | | | | | | | | | | | | (new_ggc_zone): New function prototype. (destroy_ggc_zone): Ditto. * ggc-simple.c (new_ggc_zone): New function, does nothing. (destroy_ggc_zone): Ditto. * ggc-page.c (new_ggc_zone): New function, does nothing. (destroy_ggc_zone): Ditto. * ggc-zone.c (struct page_entry): Fix comment. (ggc_alloc_typed): Use a switch statement instead of ifs. (new_ggc_zone): New function to set up a new GC zone. (destroy_ggc_zone): New function to remove a GC zone. init_ggc): Use new_ggc_zone to set up the default zones. (ggc_collect): Walk a list of zones, instead of just the default zones. Report statistics using the zone name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74132 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-12-01 Daniel Berlin <dberlin@dberlin.org>dberlin2003-12-011-1/+1
| | | | | | | | * ggc-zone.c (ggc_pch_write_object): Calculate object size using ggc_get_size (which accounts for large objects properly). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74114 138bc75d-0d04-0410-961f-82ee72b054a4
* * ChangeLog.7: Fix comment typos.kazu2003-11-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * c-common.c: Likewise. * c-pretty-print.c: Likewise. * cgraphunit.c: Likewise. * et-forest.h: Likewise. * expr.c: Likewise. * gcse.c: Likewise. * genautomata.c: Likewise. * genrecog.c: Likewise. * gensupport.c: Likewise. * ggc-zone.c: Likewise. * haifa-sched.c: Likewise. * ifcvt.c: Likewise. * loop.c: Likewise. * optabs.c: Likewise. * pretty-print.h: Likewise. * regrename.c: Likewise. * rtl.h: Likewise. * sched-rgn.c: Likewise. * target.h: Likewise. * value-prof.c: Likewise. * web.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73795 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in <enable-checking for valgrind>: Look forhp2003-10-291-1/+7
| | | | | | | | | | | | | | | <valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H if it exists. * configure, config.in: Regenerate. * ggc-common.c [ENABLE_VALGRIND_CHECKING && HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>. Use #elif for other alternatives. * ggc-page.c: Ditto. * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy include structure from ggc-common.c. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73065 138bc75d-0d04-0410-961f-82ee72b054a4
* * ggc-zone.c (check_cookies): Add missing variable.aj2003-10-281-6/+8
| | | | | | | Add void to prototypes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73000 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-26 Daniel Berlin <dberlin@dberlin.org>dberlin2003-10-271-0/+1701
* ggc-zone.c: New file, zone allocating collector. * configure: Accept zone option for --with-gc * configure.in: Ditto. * ggc.h (ggc_pch_count_object): Pass bool indicating stringiness. Update all callers. (ggc_pch_alloc_object): Ditto. (ggc_pch_write_object): Ditto. (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single type. (ggc_alloc_rtvec): Ditto. (ggc_alloc_tree): Use zone allocation, since some things using this macro aren't a single typecode. * ggc-none.c (ggc_alloc_typed): New function. (ggc_alloc_zone): Ditto. * ggc-page.c: Ditto on both functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72971 138bc75d-0d04-0410-961f-82ee72b054a4