From c4e03242daf38c7a72c2882de2603909a42b81a0 Mon Sep 17 00:00:00 2001 From: rth Date: Wed, 28 Jan 2004 18:49:26 +0000 Subject: * 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 --- gcc/ggc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/ggc.h') 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))) -- cgit v1.2.1