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: [tree-ssa] live analysis on local static functions


> On Wed, 15 Oct 2003 23:34:19 +0200, Jan Hubicka <jh@suse.cz> wrote:
> 
> >         /* Remap the variable.  */
> > !       if ((*lang_hooks.tree_inlining.auto_var_in_fn_p) (old_var, fn))
> > !         new_var = remap_decl (old_var, id);
> > !       else
> > !         new_var = old_var;
> 
> No, this is broken.  We then proceed to clobber TREE_CHAIN (old_var), and
> things fall apart.
> 
> If it's a problem that the inlined copy refers to the old variable, that's
> what should be fixed.

We can not do that either in case we want to keep the invariant that
single variable is referenced by single VAR_DECL in the function body.
Consider case where we inline function multiple times, so we would have
to insert this same copy into multiple lists anyway.

Honza
> 
> Jason


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