From 9c1303987c80cd2549ef6a9c76074c86a8f986e2 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 28 Apr 1995 01:07:33 +0000 Subject: [PATCH] (valid_machine_attribute): Add prototype. (is_attribute_p, lookup_attribute): Likewise. From-SVN: r9519 --- gcc/tree.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gcc/tree.h b/gcc/tree.h index 7077912f1f9..718ea142a36 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) -- 2.30.2