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.