https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86453
--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> --- Right. The exclusion logic doesn't depend on no_add_attr; it uses it for the same purpose as attribute handlers do: to prevent the rest of the framework from applying them. Maybe the exclusion should be done first, before calling the handler, and the call to the handler avoided if the exclusion finds a conflict.