diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-08 15:56:27 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-08 15:56:27 +0000 |
commit | c437b0dc4fe2c418a3b3bed02eab49e69f3c0e7a (patch) | |
tree | ad932cb4dec8a82eb9fd686cb0a6c341596f0816 /gcc/cp/decl.c | |
parent | 08a88e825fb6e00a791432bba82d7cd384f90335 (diff) | |
download | gcc-c437b0dc4fe2c418a3b3bed02eab49e69f3c0e7a.tar.gz |
gcc/
* c-decl.c (c_expand_body_1): Push and pop function context here.
* tree-optimize.c (tree_rest_of_compilation): ... not here. Take
nested argument instead of computing nesting ourselves.
gcc/cp/
* decl.c (finish_function): Clear current_function_decl.
* decl2.c (mark_used): Don't push/pop gc context.
* optimize.c (optimize_function): Likewise.
* tree.c (cp_cannot_inline_tree_fn): Likewise.
* pt.c (instantiate_decl): Inc/dec function_depth instead.
* semantics.c (expand_body): Update for tree_rest_of_compilation
nested argument.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71208 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index ca137909577..6886fe4d2f2 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -14104,6 +14104,7 @@ finish_function (int flags) /* We're leaving the context of this function, so zap cfun. It's still in DECL_SAVED_INSNS, and we'll restore it in tree_rest_of_compilation. */ cfun = NULL; + current_function_decl = NULL; /* If this is an in-class inline definition, we may have to pop the bindings for the template parameters that we added in |