From: Jan Hubicka Date: Thu, 23 Apr 2015 16:23:26 +0000 (+0200) Subject: tree.h (attribute_value_equal): Declare. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b5751c240669d2f37d29d3bcb3fb4afa5220d0f;p=gcc.git tree.h (attribute_value_equal): Declare. * tree.h (attribute_value_equal): Declare. * tree.c (attribute_value_equal): Export. From-SVN: r222380 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d36bae7c251..5bc370b161d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -18,6 +18,11 @@ (neon_vca_insn): New pattern. (neon_vca_insn_unspec): Likewise. +2015-04-23 Jan Hubicka + + * tree.h (attribute_value_equal): Declare. + * tree.c (attribute_value_equal): Export. + 2015-04-23 Jan Hubicka * ipa-icf.c (sem_item::compare_attributes): New function. diff --git a/gcc/tree.c b/gcc/tree.c index 01860af8717..497b14523bb 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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)) diff --git a/gcc/tree.h b/gcc/tree.h index bedf1036273..2ec970884b6 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -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). */