diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-04-23 18:23:26 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-04-23 16:23:26 +0000 |
commit | 0b5751c240669d2f37d29d3bcb3fb4afa5220d0f (patch) | |
tree | 167538ec9422ba020ace2c0e519ba908f4adaac3 /gcc | |
parent | 381811fa306b8bb2b60d6b7854cc249d89dc52e5 (diff) | |
download | gcc-0b5751c240669d2f37d29d3bcb3fb4afa5220d0f.zip gcc-0b5751c240669d2f37d29d3bcb3fb4afa5220d0f.tar.gz gcc-0b5751c240669d2f37d29d3bcb3fb4afa5220d0f.tar.bz2 |
tree.h (attribute_value_equal): Declare.
* tree.h (attribute_value_equal): Declare.
* tree.c (attribute_value_equal): Export.
From-SVN: r222380
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree.c | 2 | ||||
-rw-r--r-- | gcc/tree.h | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d36bae7..5bc370b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -20,6 +20,11 @@ 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. (sem_item::compare_referenced_symbol_properties): Compare variable attributes. @@ -4873,7 +4873,7 @@ simple_cst_list_equal (const_tree l1, const_tree l2) attribute values are known to be equal; otherwise return false. */ -static bool +bool attribute_value_equal (const_tree attr1, const_tree attr2) { if (TREE_VALUE (attr1) == TREE_VALUE (attr2)) @@ -3888,6 +3888,8 @@ extern tree build_type_attribute_variant (tree, tree); extern tree build_decl_attribute_variant (tree, tree); 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 are compatible, and 2 if they are nearly compatible (which causes a warning to be generated). */ |