aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-09-28 10:50:39 +0200
committerDuncan Sands <baldrick@gcc.gnu.org>2009-09-28 08:50:39 +0000
commit32c9b4e92473a94323f4198c4fc2a34f6052f30e (patch)
tree194a436e90764acef2d9ddd4041e1b96fecade5a /gcc/ggc.h
parentbd77e02dac3326a073283468832c6e5bb66291bf (diff)
downloadgcc-32c9b4e92473a94323f4198c4fc2a34f6052f30e.zip
gcc-32c9b4e92473a94323f4198c4fc2a34f6052f30e.tar.gz
gcc-32c9b4e92473a94323f4198c4fc2a34f6052f30e.tar.bz2
Add support for using ggc cache tables from plugins.
Approved by Ian Lance Taylor. From-SVN: r152232
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r--gcc/ggc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h
index e3471e4..c373de3 100644
--- a/gcc/ggc.h
+++ b/gcc/ggc.h
@@ -272,9 +272,13 @@ extern const char *ggc_alloc_string (const char *contents, int length);
extern void ggc_collect (void);
/* Register an additional root table. This can be useful for some
- plugins. Does nothing if the passed pointer is null. */
+ plugins. Does nothing if the passed pointer is NULL. */
extern void ggc_register_root_tab (const struct ggc_root_tab *);
+/* Register an additional cache table. This can be useful for some
+ plugins. Does nothing if the passed pointer is NULL. */
+extern void ggc_register_cache_tab (const struct ggc_cache_tab *);
+
/* Return the number of bytes allocated at the indicated address. */
extern size_t ggc_get_size (const void *);