On 11/6/23 05:24, Richard Sandiford wrote:
attribute_ignored_p already used a namespace-aware query
to find the attribute_spec for an existing attribute:

       const attribute_spec *as = lookup_attribute_spec (TREE_PURPOSE (attr));

This patch does the same for other callers in the file.

Tested on aarch64-linux-gnu & x86_64-linux-gnu.  OK to install?

Richard


gcc/
        * attribs.cc (comp_type_attributes): Pass the full TREE_PURPOSE
        to lookup_attribute_spec, rather than just the name.
        (remove_attributes_matching): Likewise.
OK
jeff

Reply via email to