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]
Other format: [Raw text]

Re: [PATCH] Fix PR preprocessor/15167


Eric Botcazou <ebotcazou@libertysurf.fr> writes:

>> Because it is a data structure invariant that buffer_valid becomes
>> false on _cpp_stack_file and stays that way.  Clearing it in
>> _cpp_pop_file_buffer papers over bugs.
>
> All right.  Let's use this invariant then.  What about something like this?
>
>
> 	* files.c (destroy_cpp_file): New function.
> 	(should_stack_file): Make a new file if the
> 	compared file is still stacked.

This will do, I think.  Might wait to see what Neil thinks of it.

zw


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