Don't handle #pragma in cp_lexer_peek_token

Matt Austern austern@apple.com
Wed Sep 22 17:22:00 GMT 2004


On Sep 22, 2004, at 9:49 AM, David Edelsohn wrote:

>>>>>> Zack Weinberg writes:
>
> Zack> The first thing I must ask is that you investigate whether 
> defining
> Zack> NO_IMPLICIT_EXTERN_C solves the problem.  If not, I will need 
> some
> Zack> preprocessed source.
>
> 	It actually is the first patch from you and Matt that seems to be
> the cause of the problem, not the second patch.

That's surprising.  I had a whole diagnosis ready based on the theory 
that "#pragma GCC system_header" wasn't predefined in 
libcpp/directives.c, but that's wrong: it is one of cpplib's predefined 
pragmas.   So this is something that we specifically thought about and 
coded for.

Tracking this down might be annoying, though.  I don't know if we have 
any AIX systems around here, and so far I haven't heard of this bug 
showing up on any non-AIX systems.  I'll ask around.  In the mean time, 
are you able to come up with a small test case?  Preferably one that 
doesn't really use a system header, of course, but a fake header marked 
with "#pragma GCC system_header" and containing a single declaration 
that illustrates whatever problem you're seeing.

			--Matt



More information about the Gcc-patches mailing list