This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: V3 and Integrated CPP [was Re: V3 PATCH: Disable wide-character tests where necessary]
Neil Booth wrote:
> Diagnostics produced by CPP will be produced almost exclusively during
> the first pass; so will be at the right place. The reread will have
> incorrect column numbers, but cc1 has always had that problem.
>
> Integrated cc1 will, in the future, be able to get the correct column
> numbers for diagnostics (except in the --save-temps case).
I don't see why any of the following wouldn't be possible:
1. When using --save-temps, use cpp output routines to write the .i
file while passing the tokens directly to cc1.
2. Invoke cpp to generate the .i file, then do it again for
compilation as usual.
2. Position tokens in the .i file such that they are at the correct
column numbers. This would be useful for other programs too.
-- Jamie