cpplib: simplify callbacks, reduce exposed interface

Zack Weinberg zackw@Stanford.EDU
Thu Nov 30 14:10:00 GMT 2000


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


More information about the Gcc-patches mailing list