aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorIra Ruben <ira@gcc.gnu.org>2002-01-10 18:51:24 +0000
committerIra Ruben <ira@gcc.gnu.org>2002-01-10 18:51:24 +0000
commite23bd2185fae41772d012231e005b789b3a9e6dc (patch)
treeea5ad261c8b70074c9c7c1c74de2f56e14b206cd /gcc/tree.h
parent47073a382432479b397a1654da5a24354e3f368a (diff)
downloadgcc-e23bd2185fae41772d012231e005b789b3a9e6dc.zip
gcc-e23bd2185fae41772d012231e005b789b3a9e6dc.tar.gz
gcc-e23bd2185fae41772d012231e005b789b3a9e6dc.tar.bz2
Added __attribute__((deprecated)) patches.
From-SVN: r48743
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 642b555..adcb0f2 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -139,6 +139,7 @@ struct tree_common
unsigned private_flag : 1;
unsigned protected_flag : 1;
unsigned bounded_flag : 1;
+ unsigned deprecated_flag : 1;
unsigned lang_flag_0 : 1;
unsigned lang_flag_1 : 1;
@@ -260,7 +261,13 @@ struct tree_common
expressions, VAR_DECL, PARM_DECL, FIELD_DECL, FUNCTION_DECL,
IDENTIFIER_NODE
TYPE_BOUNDED in
- ..._TYPE */
+ ..._TYPE
+
+ deprecated_flag:
+
+ TREE_DEPRECATED in
+ ..._DECL
+*/
/* Define accessors for the fields that all tree nodes have
(though some fields are not used for all kinds of nodes). */
@@ -651,6 +658,10 @@ extern void tree_class_check_failed PARAMS ((const tree, int,
#define TREE_BOUNDED(NODE) ((NODE)->common.bounded_flag)
+/* Nonzero in a IDENTIFIER_NODE if the use of the name is defined as a
+ deprecated feature by __attribute__((deprecated)). */
+#define TREE_DEPRECATED(NODE) ((NODE)->common.deprecated_flag)
+
/* These flags are available for each language front end to use internally. */
#define TREE_LANG_FLAG_0(NODE) ((NODE)->common.lang_flag_0)
#define TREE_LANG_FLAG_1(NODE) ((NODE)->common.lang_flag_1)