This is the mail archive of the
mailing list for the GCC project.
Re: Deal with local static same way as we deal with global static for IPA
> On Wed, Jun 08, 2005 at 11:02:51AM +0200, Jan Hubicka wrote:
> > I don't see how to do that easilly - the BIND_EXPRs are linked via
> > TREE_CHAIN pointers and we need the local static in two BIND_EXPRs at
> > once, but we have only one link pointer.
> I don't think it needs to be linked into the bind_expr at all.
I tried simply skipping them, problem I run into was the fact that
gimplifier then didn't put it into unexpanded_var_list and thus it never
got finalized when the master copy of function got optimized out...
> We don't use the BIND_EXPRs for debugging, only the BLOCKs. You may
> need to insert the variable into the inliner's unexpanded_var_list,
OK, so you suggest instead of remapping it, simply go ahead and drop it
into the unexpanded_var_list (so we will have generic functions with
this list partly initialized before we gimplify)?
> to make sure that its DECL_RTL gets created at the right time, but
> that should be about it.