https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122483
--- Comment #28 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Note, we already have e.g. attribute_takes_identifier_p which uses targetm.attribute_takes_identifier_p, so that would be an precedent for target hook based solution. Though, if there are no generic attributes that want this kind of handling, it might be enough to have a target hook and no wrapper function for that.
