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 to input_file_stack handling


Per Bothner <per@bothner.com> writes:

> The behavior of push_srcloc/pop_srcloc is weird (why are
> we saving the stack the new values in input_location?),
> and it caused problems with the compile server.  The
> attached patch is simpler, passes boostrap and the testsuite,
> and is what I'm using in the compile server.  Ok to check in?
> -- 
> 	--Per Bothner
> per@bothner.com   http://per.bothner.com/
>
>
> 	* toplec.c (push_srcloc):  Simplify behavior to save current location
> 	and set current location to parameters.
> 	(pop_srcloc):  Simplify semantics.
> 	(lang_dependent_init):  Remove now-useless initial push_srcloc.

OK if you didn't break stabs debug info generation (i.e. if you didn't
already test that, please test it before checking this in).

zw


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