aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>2001-01-29 17:38:41 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-01-29 17:38:41 -0800
commit2b5f2501ea98677dd265291c4032d89fe1d1641f (patch)
tree52d2231f3b17ee44d77acc73b2bdd37a0c579c0e /gcc/tree.h
parent1270a9b381f178bcfe2079551cd1d0abc12de9bc (diff)
downloadgcc-2b5f2501ea98677dd265291c4032d89fe1d1641f.zip
gcc-2b5f2501ea98677dd265291c4032d89fe1d1641f.tar.gz
gcc-2b5f2501ea98677dd265291c4032d89fe1d1641f.tar.bz2
* tree.h (TYPE_STUB_DECL): Add documentation.
From-SVN: r39340
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 1ff7441..f9da7c9 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -939,6 +939,13 @@ struct tree_block
#define TYPE_ALIGN_UNIT(NODE) \
(TYPE_ALIGN (NODE) / BITS_PER_UNIT)
+/* If your language allows you to declare types, and you want debug info
+ for them, then you need to generate corresponding TYPE_DECL nodes.
+ These "stub" TYPE_DECL nodes have no name, and simply point at the
+ type node. You then set the TYPE_STUB_DECL field of the type node
+ to point back at the TYPE_DECL node. This allows the debug routines
+ to know that the two nodes represent the same type, so that we only
+ get one debug info record for them. */
#define TYPE_STUB_DECL(NODE) (TREE_CHAIN (NODE))
/* In a RECORD_TYPE, UNION_TYPE or QUAL_UNION_TYPE, it means the type