From: Jim Wilson Date: Mon, 2 Mar 1998 11:06:14 +0000 (+0000) Subject: decl.c (start_function): Don't call temporary_allocation for a nested function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=948edfa70264176018542bf185e3ed1a68cf331c;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index cf011cc3967..66d98cbc913 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 2 11:04:59 1998 Jim Wilson + + * decl.c (start_function): Don't call temporary_allocation for a + nested function. + Sun Mar 1 21:06:37 1998 Jason Merrill * pt.c (instantiate_class_template): Don't mess with friends if diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 6d44bb0f990..e5ab625e723 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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)