aboutsummaryrefslogtreecommitdiff
path: root/gcc/attribs.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/attribs.cc')
-rw-r--r--gcc/attribs.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/attribs.cc b/gcc/attribs.cc
index 7d7f8f3..51c7f46 100644
--- a/gcc/attribs.cc
+++ b/gcc/attribs.cc
@@ -967,10 +967,8 @@ decl_attributes (tree *node, tree attributes, int flags,
for (a = find_same_attribute (attr, old_attrs);
a != NULL_TREE;
a = find_same_attribute (attr, TREE_CHAIN (a)))
- {
- if (simple_cst_equal (TREE_VALUE (a), args) == 1)
- break;
- }
+ if (attribute_value_equal (a, attr))
+ break;
if (a == NULL_TREE)
{