https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47781

--- Comment #16 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #15)
> Although checking the commentary on newer mainline versions of the
> _bfd_default_error_handler function, it looks like it does some additional
> weird stuff with the argument order, but still, support for extending the
> format attribute like this would still be a good start!

As suggested above, whoever wants to see progress on this should start
developing a plugin that hooks into gcc/c-family/c-format.c. Whether your
plugin will parse an attribute, a pragma, an internal representation or define
the formats programmatically is up to you. The important thing is to figure out
what plugin hooks you need in GCC to make it work, which will require making
the format checking extensible at runtime. Until you get that part working,
there is little benefit in discussing any possible syntax.

Reply via email to