This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA:] CPP: Correct (add) condition for calling debug_end_source_file
- To: Hans-Peter Nilsson <hp at bitrange dot com>
- Subject: Re: [RFA:] CPP: Correct (add) condition for calling debug_end_source_file
- From: Neil Booth <NeilB at earthling dot net>
- Date: Tue, 7 Nov 2000 07:55:11 +0000
- Cc: gcc-patches at gcc dot gnu dot org
- References: <Pine.BSF.4.10.10011062057490.23302-100000@dair.pair.com>
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.