Mercurial > hg > CbC > CbC_gcc
comparison gcc/ggc.h @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
52:c156f1bd5cd9 | 55:77e2b8dfacca |
---|---|
1 /* Garbage collection for the GNU compiler. | 1 /* Garbage collection for the GNU compiler. |
2 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008 | 2 |
3 Free Software Foundation, Inc. | 3 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, |
4 2008, 2009 Free Software Foundation, Inc. | |
4 | 5 |
5 This file is part of GCC. | 6 This file is part of GCC. |
6 | 7 |
7 GCC is free software; you can redistribute it and/or modify it under | 8 GCC is free software; you can redistribute it and/or modify it under |
8 the terms of the GNU General Public License as published by the Free | 9 the terms of the GNU General Public License as published by the Free |
223 #define ggc_realloc(s,z) ggc_realloc_stat (s,z MEM_STAT_INFO) | 224 #define ggc_realloc(s,z) ggc_realloc_stat (s,z MEM_STAT_INFO) |
224 /* Like ggc_alloc_cleared, but performs a multiplication. */ | 225 /* Like ggc_alloc_cleared, but performs a multiplication. */ |
225 extern void *ggc_calloc (size_t, size_t); | 226 extern void *ggc_calloc (size_t, size_t); |
226 /* Free a block. To be used when known for certain it's not reachable. */ | 227 /* Free a block. To be used when known for certain it's not reachable. */ |
227 extern void ggc_free (void *); | 228 extern void ggc_free (void *); |
228 | 229 |
229 extern void ggc_record_overhead (size_t, size_t, void * MEM_STAT_DECL); | 230 extern void ggc_record_overhead (size_t, size_t, void * MEM_STAT_DECL); |
230 extern void ggc_free_overhead (void *); | 231 extern void ggc_free_overhead (void *); |
231 extern void ggc_prune_overhead_list (void); | 232 extern void ggc_prune_overhead_list (void); |
232 | 233 |
233 extern void dump_ggc_loc_statistics (bool); | 234 extern void dump_ggc_loc_statistics (bool); |
268 | 269 |
269 /* Invoke the collector. Garbage collection occurs only when this | 270 /* Invoke the collector. Garbage collection occurs only when this |
270 function is called, not during allocations. */ | 271 function is called, not during allocations. */ |
271 extern void ggc_collect (void); | 272 extern void ggc_collect (void); |
272 | 273 |
274 /* Register an additional root table. This can be useful for some | |
275 plugins. Does nothing if the passed pointer is NULL. */ | |
276 extern void ggc_register_root_tab (const struct ggc_root_tab *); | |
277 | |
278 /* Register an additional cache table. This can be useful for some | |
279 plugins. Does nothing if the passed pointer is NULL. */ | |
280 extern void ggc_register_cache_tab (const struct ggc_cache_tab *); | |
281 | |
273 /* Return the number of bytes allocated at the indicated address. */ | 282 /* Return the number of bytes allocated at the indicated address. */ |
274 extern size_t ggc_get_size (const void *); | 283 extern size_t ggc_get_size (const void *); |
275 | 284 |
276 /* Write out all GCed objects to F. */ | 285 /* Write out all GCed objects to F. */ |
277 extern void gt_pch_save (FILE *f); | 286 extern void gt_pch_save (FILE *f); |