Commit 948edfa7 by Jim Wilson Committed by Jason Merrill

decl.c (start_function): Don't call temporary_allocation for a nested function.

	* decl.c (start_function): Don't call temporary_allocation for a
	nested function.

From-SVN: r18356
parent 54f00917
Mon Mar 2 11:04:59 1998 Jim Wilson <wilson@cygnus.com>
* decl.c (start_function): Don't call temporary_allocation for a
nested function.
Sun Mar 1 21:06:37 1998 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (instantiate_class_template): Don't mess with friends if
......
......@@ -11916,8 +11916,11 @@ start_function (declspecs, declarator, attrs, pre_parsed_p)
TREE_THIS_VOLATILE (DECL_RESULT (decl1)) = TYPE_VOLATILE (restype);
}
/* Allocate further tree nodes temporarily during compilation
of this function only. Tiemann moved up here from bottom of fn. */
/* Allocate further tree nodes temporarily during compilation
of this function only. Tiemann moved up here from bottom of fn. */
/* If this is a nested function, then we must continue to allocate RTL
on the permanent obstack in case we need to inline it later. */
if (! hack_decl_function_context (decl1))
temporary_allocation ();
if (processing_template_decl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment