diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-28 09:45:26 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-28 09:45:26 +0000 |
commit | ae093573aeda90465c32e952ff7bf9593feeb8e9 (patch) | |
tree | 37249f8b6b4632747ea172b9860309ecc5ad4c27 /gcc/doc/gty.texi | |
parent | 5d2fc50913d8f07dac579d636b6b46040df073f1 (diff) | |
download | gcc-ae093573aeda90465c32e952ff7bf9593feeb8e9.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134750 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/gty.texi')
-rw-r--r-- | gcc/doc/gty.texi | 5 |
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}") |