This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
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