aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/ada-tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/ada-tree.h')
-rw-r--r--gcc/ada/ada-tree.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/ada-tree.h b/gcc/ada/ada-tree.h
index c087f78..319ec2e 100644
--- a/gcc/ada/ada-tree.h
+++ b/gcc/ada/ada-tree.h
@@ -34,7 +34,11 @@ enum gnat_tree_code {
#undef DEFTREECODE
/* Ada uses the lang_decl and lang_type fields to hold a tree. */
-union lang_tree_node GTY((desc ("0"))) {union tree_node GTY((tag ("0"))) t; };
+union lang_tree_node GTY((desc ("0"),
+ chain_next ("(union lang_tree_node *)TREE_CHAIN (&%h.t)")))
+{
+ union tree_node GTY((tag ("0"))) t;
+};
struct lang_decl GTY(()) {tree t; };
struct lang_type GTY(()) {tree t; };