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/semantics.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/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index d8ac60d9c5d..8b765ef1697 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2868,7 +2868,7 @@ expand_body (tree fn) optimize_function (fn); timevar_pop (TV_INTEGRATION); - tree_rest_of_compilation (fn); + tree_rest_of_compilation (fn, function_depth > 1); current_function_decl = saved_function; input_location = saved_loc; |