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
On 14/04/2010 10:41, Dave Edwards wrote:
> We thought/hoped others might find it useful, but if you want to keep
> the processor unchanged we'll just have to keep it in our private port.
It does sound like the sort of thing that could be easily reproduced in a
makefile system:
- do initial pass over C source with preprocessor, using -DEMIT_AT_EOF=
something easily greppable on the commandline;
- collect just the deferred output into a file by grepping or sedding it
- cat the original source and that together to generate an intermediate source
file with the deferred output at the end
- compile it.
cheers,
DaveK