This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch to input_file_stack handling
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 04 Jun 2003 13:49:19 -0700
- Subject: Re: patch to input_file_stack handling
- References: <3EDE5144.5000706@bothner.com>
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