diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-04 11:30:46 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-04 11:30:46 +0000 |
commit | 3cfec666406d71f8b7d7abcf9883c64117453c15 (patch) | |
tree | e46147f472cc001827083ec7631a1140948ce7c6 /gcc/ggc-simple.c | |
parent | a2dd943a80f4e3091f7f992594f6e3e01ce522fb (diff) | |
download | gcc-3cfec666406d71f8b7d7abcf9883c64117453c15.tar.gz |
* gbl-ctors.h: Fix formatting.
* gcc.c: Likewise.
* gccspec.c: Likewise.
* gcov.c: Likewise.
* gcov-io.h: Likewise.
* gcse.c: Likewise.
* ggc-common.c: Likewise.
* ggc.h: Likewise.
* ggc-page.c: Likewise.
* ggc-simple.c: Likewise.
* global.c: Likewise.
* graph.h: Likewise.
* gthr-dce.h: Likewise.
* gthr.h: Likewise.
* gthr-posix.h: Likewise.
* gthr-rtems.h: Likewise.
* gthr-solaris.h: Likewise.
* gthr-win32.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54240 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-simple.c')
-rw-r--r-- | gcc/ggc-simple.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ggc-simple.c b/gcc/ggc-simple.c index 81d2c36fc6d..d3b53279241 100644 --- a/gcc/ggc-simple.c +++ b/gcc/ggc-simple.c @@ -251,7 +251,7 @@ size_t ggc_get_size (p) const void *p; { - struct ggc_mem *x + struct ggc_mem *x = (struct ggc_mem *) ((const char *)p - offsetof (struct ggc_mem, u)); return x->size; } @@ -360,7 +360,7 @@ ggc_collect () /* Called once to initialize the garbage collector. */ -void +void init_ggc () { G.allocated_last_gc = GGC_MIN_LAST_ALLOCATED; @@ -383,7 +383,7 @@ ggc_push_context () /* Finish a GC context. Any uncollected memory in the new context will be merged with the old context. */ -void +void ggc_pop_context () { G.context--; @@ -425,7 +425,7 @@ debug_ggc_tree (p, indent) for (i = 0; i < indent; ++i) putc (' ', stderr); fprintf (stderr, "%lx %p\n", (unsigned long)PTR_KEY (p), p); - + if (p->sub[1]) debug_ggc_tree (p->sub[1], indent + 1); } @@ -490,7 +490,7 @@ ggc_print_statistics () /* Clear the statistics. */ memset (&stats, 0, sizeof (stats)); - + /* Make sure collection will really occur. */ G.allocated_last_gc = 0; |