aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog8
-rw-r--r--gcc/cp/method.c4
-rw-r--r--gcc/cp/pt.c2
-rw-r--r--gcc/cp/rtti.c2
-rw-r--r--gcc/cp/semantics.c7
5 files changed, 9 insertions, 14 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 996ee3e..6e0fc82 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -48,15 +48,15 @@
(process_next_inline): Adjust prototype.
(do_scoped_id): Don't call binding_init.
(make_lang_type): Allocate TYPE_LANG_SPECIFIC with xmalloc.
- (emit_thunk): Adjust call to finish_function.
+ * method.c (emit_thunk): Adjust call to finish_function.
(synthesize_method): Likewise.
* parse.y (%union): Add a new `pi' variant.
(PRE_PARSED_FUNCTION_DECL): Use it.
(fn.defpen): Likewise.
(fndef): Adjust call to finish_function.
- (instantiate_decl): Likewise.
- (rtti.c): Likewise.
- (semantics.c): Likewise.
+ * pt.c (instantiate_decl): Likewise.
+ * rtti.c (syntheisze_tinfo_fn): Likewise.
+ * semantics.c (expand_body): Likewise.
* tree.c: Include ggc.h.
(mark_list_hash): New function.
(binding_init): Remove.
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index cf681e1..7b74443 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -2147,7 +2147,7 @@ emit_thunk (thunk_fndecl)
t = build_call (function, TREE_TYPE (TREE_TYPE (function)), t);
c_expand_return (t);
- finish_function (lineno, 0, 0);
+ finish_function (lineno, 0);
/* Don't let the backend defer this function. */
if (DECL_DEFER_OUTPUT (thunk_fndecl))
@@ -2388,7 +2388,7 @@ synthesize_method (fndecl)
}
}
- finish_function (lineno, 0, nested);
+ finish_function (lineno, 0);
extract_interface_info ();
if (! context)
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 01d4f1f..f248752 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -9730,7 +9730,7 @@ instantiate_decl (d)
/* Clean up. */
pop_obstacks ();
- finish_function (lineno, 0, nested);
+ finish_function (lineno, 0);
expanding_p = saved_expanding_p;
/* Now, generate RTL for the function. */
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c
index 93947d2..c3ce330 100644
--- a/gcc/cp/rtti.c
+++ b/gcc/cp/rtti.c
@@ -1173,5 +1173,5 @@ synthesize_tinfo_fn (fndecl)
tmp = build_indirect_ref (tmp, 0);
c_expand_return (tmp);
pop_momentary ();
- finish_function (lineno, 0, 0);
+ finish_function (lineno, 0);
}
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 5502df3..d6099f3 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -2185,14 +2185,9 @@ expand_body (fn)
tree fn;
{
int saved_expanding_p;
- int nested;
tree t;
tree try_block;
- /* Remember whether we're already processing a function definition
- so that we can tell finish_function. */
- nested = in_function_p ();
-
/* Let the compiler know that now is the time to really generate
actualy RTL. */
saved_expanding_p = expanding_p;
@@ -2248,7 +2243,7 @@ expand_body (fn)
finish_function_handler_sequence (NULL_TREE);
}
- finish_function (lineno, 0, nested);
+ finish_function (lineno, 0);
/* Restore EXPANDING_P. */
expanding_p = saved_expanding_p;