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] Fix variables getting out of their scope


Hello,

> > Some ideas what to do with them?  It would be nice if we could shomehow
> > get rid of them before more radical changes from tree-ssa-cfg are
> > merged, as they bring nothing but problems.
> 
> Build the block tree used by rtl early (directly from the BIND_EXPRs),
> and either (1) leave the scope in the stmt_ann or (2) put them in a
> separate hash table.

> Finally, make sure that this gets put into the
> right place for rtl insns created from a given tree stmt.

not sure what you mean exactly by this?

For me, the problem is how to arrange the rtl for decls to be emitted,
stack space allocated, etc., without having to somehow recreate
BIND_EXPRs before expanding.  I don't see a way how to do it without
massive rewrite of tree->rtl expansion, which is what I don't want to do
just now.

Zdenek


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