This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA:] CPP: Correct (add) condition for calling debug_end_source_file


Hans-Peter Nilsson wrote:-

> CPP hackers beware.
> Ok to commit?
> 
> 	* c-lex.c (cb_leave_file): Add condition to call of
>  	debug_end_source_file to match condition for
> 	debug_start_source_file in cb_enter_file.

Hi Hans-Peter,

Thanks for the report.  I'd actually noticed this a few days ago on
CVSweb, but forgotten about it again.

I'd rather you put everything inside the condition

  if (input_file_stack->next)

that is in that condition in process_directive () under

  else if (action == act_pop)

a few lines above.  Then we know the conditions for integrated and
non-integrated CPP match.  This includes your line, and the #if 0 and
#ifndef NO_IMPLICIT_EXTERN_C stuff.

Neil.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]