aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/gty.texi
diff options
context:
space:
mode:
authorBasile Starynkevitch <bstarynk@gcc.gnu.org>2007-01-19 17:56:18 +0000
committerBasile Starynkevitch <bstarynk@gcc.gnu.org>2007-01-19 17:56:18 +0000
commit8d6419b2178b613e874864fbb51aa89398451002 (patch)
tree7bc390552a367ece4c1602b88d5ed90b26879f11 /gcc/doc/gty.texi
parent6c798f4fc1b8c87f592394070746dc1b54cf8006 (diff)
downloadgcc-8d6419b2178b613e874864fbb51aa89398451002.zip
gcc-8d6419b2178b613e874864fbb51aa89398451002.tar.gz
gcc-8d6419b2178b613e874864fbb51aa89398451002.tar.bz2
gty.texi (Options): Document the mark_hook option to GTY.
2007-01-19 Basile Starynkevitch <basile@starynkevitch.net> * gcc/doc/gty.texi (Options): Document the mark_hook option to GTY. * gcc/gengtype.c (write_types_data, write_func_for_structure, write_types, ggc_wtd, pch_wtd): Added skip_hooks to write_types_data, ggc_wtd, pch_wtd for mark_hook. (walk_type, write_func_for_structure): Generate the mark_hook if needed. * MAINTAINERS: added myself (Basile Starynkevitch) to write after approval. From-SVN: r120973
Diffstat (limited to 'gcc/doc/gty.texi')
-rw-r--r--gcc/doc/gty.texi12
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/doc/gty.texi b/gcc/doc/gty.texi
index d997d1e..ed677c6 100644
--- a/gcc/doc/gty.texi
+++ b/gcc/doc/gty.texi
@@ -1,4 +1,4 @@
-@c Copyright (C) 2002, 2003, 2004
+@c Copyright (C) 2002, 2003, 2004, 2007
@c Free Software Foundation, Inc.
@c This is part of the GCC manual.
@c For copying conditions, see the file gcc.texi.
@@ -282,6 +282,16 @@ The routine @code{ggc_marked_p} can be used to determine if an element
has been marked already; in fact, the usual case is to use
@code{if_marked ("ggc_marked_p")}.
+@findex mark_hook
+@item mark_hook ("@var{hook-routine-name}")
+
+If provided for a structure or union type, the given
+@var{hook-routine-name} (between double-quotes) is the name of a
+routine called when the garbage collector has just marked the data as
+reachable. This routine should not change the data, or call any ggc
+routine. Its only argument is a pointer to the just marked (const)
+structure or union.
+
@findex maybe_undef
@item maybe_undef