summaryrefslogtreecommitdiff
path: root/gcc/doc/gty.texi
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@gcc.gnu.org>2008-04-28 11:45:26 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2008-04-28 11:45:26 +0200
commit623f8e39bcc1b8dd61a815b992ccdcb65ffe4eff (patch)
tree37249f8b6b4632747ea172b9860309ecc5ad4c27 /gcc/doc/gty.texi
parent0e8d83837e0c00a7bd52deedd2e3ed691f703310 (diff)
downloadgcc-623f8e39bcc1b8dd61a815b992ccdcb65ffe4eff.tar.gz
re PR debug/36060 (Too big stack requirements of cc1plus during GC)
PR debug/36060 * dwarf2out.c (struct die_struct): Mark as chain_circular through die_sub field. * gengtype.c (walk_type, write_func_for_structure): Handle chain_circular. * doc/gty.texi: Document chain_circular. From-SVN: r134750
Diffstat (limited to 'gcc/doc/gty.texi')
-rw-r--r--gcc/doc/gty.texi5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/doc/gty.texi b/gcc/doc/gty.texi
index 2ffa1519429..c063d0184e3 100644
--- a/gcc/doc/gty.texi
+++ b/gcc/doc/gty.texi
@@ -316,8 +316,10 @@ escape.
@findex chain_next
@findex chain_prev
+@findex chain_circular
@item chain_next ("@var{expression}")
@itemx chain_prev ("@var{expression}")
+@itemx chain_circular ("@var{expression}")
It's helpful for the type machinery to know if objects are often
chained together in long lists; this lets it generate code that uses
@@ -326,7 +328,8 @@ it. @code{chain_next} is an expression for the next item in the list,
@code{chain_prev} is an expression for the previous item. For singly
linked lists, use only @code{chain_next}; for doubly linked lists, use
both. The machinery requires that taking the next item of the
-previous item gives the original item.
+previous item gives the original item. @code{chain_circular} is similar
+to @code{chain_next}, but can be used for circular single linked lists.
@findex reorder
@item reorder ("@var{function name}")