This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: simplify callbacks, reduce exposed interface
On Thu, Nov 30, 2000 at 09:47:41PM +0000, Neil Booth wrote:
> Zack Weinberg wrote:-
>
> > I'd support this, and also removing the ability to specify trailing
> > flags on #line. As you say, it can probably cause segfaults and the
> > like. It used to be useful to write #line "foobar" 3, but now we have
> > #pragma GCC system_header for that.
>
> Right, but we reject that in the main file.
>
> What should I do to update the test suites? Remove all the tests for
> no warnings in system headers? Or update cpp to accept the #pragma
> even in the main file?
Accept the #pragma in the main file. We thought that would never be
useful, but the test suites provide a counterexample.
zw