]> git.ipfire.org Git - thirdparty/gcc.git/commit
attribs: Use attribute_value_equal in decl_attributes
authorJakub Jelinek <jakub@redhat.com>
Sat, 6 Dec 2025 10:08:05 +0000 (11:08 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 6 Dec 2025 10:08:05 +0000 (11:08 +0100)
commitc57188ef0c10fefc408a67b9c3db877e7dcde29e
treeea55387eaee0755bfce37795fb918e1fd16c7e48
parent3b7e865779d03b4d29375a3c28dfaa2172eced4a
attribs: Use attribute_value_equal in decl_attributes

This is another thing discussed in the 1/9 Reflection thread,
also not dependent on reflection.

decl_attributes calls simple_cst_equal on TREE_VALUEs of the
current and preexisting attributes, but that is just a small
part of how attribute values should be compared.

The following patch fixes that.

2025-12-06  Jakub Jelinek  <jakub@redhat.com>

* attribs.cc (decl_attributes): Use attribute_value_equal to
compare attribute values instead of simple_cst_equal.
gcc/attribs.cc