[PATCH] PR preprocessor/64803 - __LINE__ inside macro is not constant

Jakub Jelinek jakub@redhat.com
Mon Feb 2 22:43:00 GMT 2015


On Mon, Feb 02, 2015 at 11:22:58PM +0100, Dodji Seketeli wrote:
> Thanks.  The patch that finally passed bootstrap is the one below.  It's
> slightly different in the condition I use to detect that we are popping
> the context of the top-most macro expansion stored in
> pfile->top_most_macro_node in _cpp_pop_context().  I now use:
> 
> +      if (macro == pfile->top_most_macro_node && context->prev == NULL)
> 
> And the context->prev == NULL means, "this is the first macro expansion

LGTM.

> context on the the stack".  I have also corrected a typo by
> s/poping/popping/.  I don't know what I was thinking before.

Oops, sorry for missing that.

	Jakub



More information about the Gcc-patches mailing list