This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][libcpp] New deferred output pragma
Tom Tromey wrote:
"David" == David Stubbs <stubbs@IceraSemi.com> writes:
David> I can provide a fuller example if necessary, but it's quite a
David> unique use case.
Just so there is no doubt, for me this doesn't meet the bar for a new
extension.
I probably agree with such a position (even if I found the proposed
extension a little interesting, but probably not enough to be accepted
as is). However, this brings another question in mind: making this
extension & patch a plugin.
I don't know enough libcpp/ & I did not looked very closely into the
patch. However, I believe that such a need is typical for plugins.
Then the question becomes: does the current trunk provides enough plugin
hooks to make such a plugin? I would guess that some hooks are missing
(but I am not sure of that: we have plugin hooks for pragmas, but
perhaps not inside libcpp).
I would hence invite the IceraSami people needing this patch & deferred
output pragma to:
a. investigate what (small) plugin hooks might be missing to
implement their extension as a plugin.
b. propose (if needed) to GCC the small patch providing the necessary
extra hooks. (I would expect such a patch to be much much smaller than
their original one, and probably easier to be accepted)
c. implement their new pragma in a plugin, and distribute that plugin
under GPLv3 license.
Cheers.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***