diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-28 18:49:26 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-28 18:49:26 +0000 |
commit | c4e03242daf38c7a72c2882de2603909a42b81a0 (patch) | |
tree | b2610d09544f2d611e1c960a1c767328e33944ed /gcc/ggc.h | |
parent | a2e8135a41593b7e401eed06a9ec421a3e43dafb (diff) | |
download | gcc-c4e03242daf38c7a72c2882de2603909a42b81a0.tar.gz |
* ggc.h (ggc_free): Declare.
* ggc-common.c (ggc_realloc): Use it.
* ggc-page.c: Remove lots of inline markers.
(globals): Add free_object_list.
(ggc_alloc): Tidy.
(ggc_free, validate_free_objects): New.
(poison_pages): Provide default.
(ggc_collect): Call validate_free_objects; emit markers to
the debug file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76801 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r-- | gcc/ggc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h index 8add2da33ba..fbd1e3489e2 100644 --- a/gcc/ggc.h +++ b/gcc/ggc.h @@ -223,6 +223,8 @@ extern void *ggc_alloc_cleared_zone (size_t, struct alloc_zone *); extern void *ggc_realloc (void *, size_t); /* Like ggc_alloc_cleared, but performs a multiplication. */ extern void *ggc_calloc (size_t, size_t); +/* Free a block. To be used when known for certain it's not reachable. */ +extern void ggc_free (void *); #define ggc_alloc_rtx(CODE) \ ((rtx) ggc_alloc_typed (gt_ggc_e_7rtx_def, RTX_SIZE (CODE))) |