aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1995-04-28 01:07:33 +0000
committerDoug Evans <dje@gnu.org>1995-04-28 01:07:33 +0000
commit9c1303987c80cd2549ef6a9c76074c86a8f986e2 (patch)
tree639d460d29b67549eeaae39535c6b982320a59b2 /gcc
parent597bc2d49531634947cb89f4faabf7166c698efd (diff)
downloadgcc-9c1303987c80cd2549ef6a9c76074c86a8f986e2.zip
gcc-9c1303987c80cd2549ef6a9c76074c86a8f986e2.tar.gz
gcc-9c1303987c80cd2549ef6a9c76074c86a8f986e2.tar.bz2
(valid_machine_attribute): Add prototype.
(is_attribute_p, lookup_attribute): Likewise. From-SVN: r9519
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 7077912..718ea14 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1194,7 +1194,7 @@ extern tree array_type_nelts PROTO((tree));
extern tree value_member PROTO((tree, tree));
extern tree purpose_member PROTO((tree, tree));
extern tree binfo_member PROTO((tree, tree));
-extern int attribute_in_list PROTO((tree, tree));
+extern int attribute_hash_list PROTO((tree));
extern int attribute_list_equal PROTO((tree, tree));
extern int attribute_list_contained PROTO((tree, tree));
extern int tree_int_cst_equal PROTO((tree, tree));
@@ -1217,6 +1217,20 @@ extern tree make_tree ();
extern tree build_type_attribute_variant PROTO((tree, tree));
extern tree build_decl_attribute_variant PROTO((tree, tree));
+/* Return 1 if an attribute and its arguments are valid for a decl or type. */
+
+int valid_machine_attribute PROTO((tree, tree, tree, tree));
+
+/* Given a tree node and a string, return non-zero if the tree node is
+ a valid attribute name for the string. */
+
+int is_attribute_p PROTO((char *, tree));
+
+/* Given an attribute name and a list of attributes, return the list element
+ of the attribute or NULL_TREE if not found. */
+
+tree lookup_attribute PROTO((char *, tree));
+
/* Given a type node TYPE, and CONSTP and VOLATILEP, return a type
for the same kind of data as TYPE describes.
Variants point to the "main variant" (which has neither CONST nor VOLATILE)