Commit 0b5751c2 by Jan Hubicka Committed by Jan Hubicka

tree.h (attribute_value_equal): Declare.


	* tree.h (attribute_value_equal): Declare.
	* tree.c (attribute_value_equal): Export.

From-SVN: r222380
parent 381811fa
...@@ -20,6 +20,11 @@ ...@@ -20,6 +20,11 @@
2015-04-23 Jan Hubicka <hubicka@ucw.cz> 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
* tree.h (attribute_value_equal): Declare.
* tree.c (attribute_value_equal): Export.
2015-04-23 Jan Hubicka <hubicka@ucw.cz>
* ipa-icf.c (sem_item::compare_attributes): New function. * ipa-icf.c (sem_item::compare_attributes): New function.
(sem_item::compare_referenced_symbol_properties): Compare variable (sem_item::compare_referenced_symbol_properties): Compare variable
attributes. attributes.
......
...@@ -4873,7 +4873,7 @@ simple_cst_list_equal (const_tree l1, const_tree l2) ...@@ -4873,7 +4873,7 @@ simple_cst_list_equal (const_tree l1, const_tree l2)
attribute values are known to be equal; otherwise return false. attribute values are known to be equal; otherwise return false.
*/ */
static bool bool
attribute_value_equal (const_tree attr1, const_tree attr2) attribute_value_equal (const_tree attr1, const_tree attr2)
{ {
if (TREE_VALUE (attr1) == TREE_VALUE (attr2)) if (TREE_VALUE (attr1) == TREE_VALUE (attr2))
......
...@@ -3888,6 +3888,8 @@ extern tree build_type_attribute_variant (tree, tree); ...@@ -3888,6 +3888,8 @@ extern tree build_type_attribute_variant (tree, tree);
extern tree build_decl_attribute_variant (tree, tree); extern tree build_decl_attribute_variant (tree, tree);
extern tree build_type_attribute_qual_variant (tree, tree, int); extern tree build_type_attribute_qual_variant (tree, tree, int);
extern bool attribute_value_equal (const_tree, const_tree);
/* Return 0 if the attributes for two types are incompatible, 1 if they /* Return 0 if the attributes for two types are incompatible, 1 if they
are compatible, and 2 if they are nearly compatible (which causes a are compatible, and 2 if they are nearly compatible (which causes a
warning to be generated). */ warning to be generated). */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment