https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92123
--- Comment #22 from rguenther at suse dot de <rguenther at suse dot de> --- On Wed, 27 Nov 2019, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92123 > > --- Comment #20 from Jakub Jelinek <jakub at gcc dot gnu.org> --- > Created attachment 47377 > --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47377&action=edit > gcc10-fnspec-test.patch > > Just for archival purposes, here is a short gcc plugin that allows testing "fn > spec" attribute (on direct function calls only, not on indirect calls), by > registering a fn_spec attribute and remapping it to "fn spec" when finish_decl > is called. I guess sth like -fenable-internal-attributes registering both fn_spec and no_vops would be nice for testing those. Or better an (undocumented) --param. There's also "asan odr inidicator" and various "omp declare .." ones, eventually generically adjusting matching of the attribute names with the param/flag set can be done.