From 0b5751c240669d2f37d29d3bcb3fb4afa5220d0f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 23 Apr 2015 18:23:26 +0200 Subject: [PATCH] tree.h (attribute_value_equal): Declare. * tree.h (attribute_value_equal): Declare. * tree.c (attribute_value_equal): Export. From-SVN: r222380 --- gcc/ChangeLog | 5 +++++ gcc/tree.c | 2 +- gcc/tree.h | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) 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). */ -- 2.30.2