This is the mail archive of the gcc@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] C++ Question


On Mon, 24 Mar 2003 15:06:26 -0700, law at redhat dot com wrote:

> Anyway, I'm not sure how you want to fix this.  We could save/restore
> current_function_decl in  cp_cannot_inline_tree_fn, the generic
> inliner, or in instantiate_decl.

instantiate_decl already tries to do this; look for the call to
push_to_top_level.  I suspect that the problem is that global_bindings_p()
is returning true when we're in the tree optimizers.  Perhaps that test
should be changed to check for cfun.

Jason


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