From: Jim Wilson Date: Tue, 3 Mar 1998 00:55:34 +0000 (+0000) Subject: decl.c (start_function): Don't call temporary_allocation for a nested function. X-Git-Tag: prereleases/egcs-1.0.2-980309-prerelease~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2fbc2cacc472ab52cc5e5f4ad81984371a347c9;p=thirdparty%2Fgcc.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: r18374 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fdb91d70939d..16f8dfd11163 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Tue Mar 3 01:58:11 1998 Jim Wilson + + * decl.c (start_function): Don't call temporary_allocation for a + nested function. + Mon Nov 24 12:15:55 1997 Jason Merrill * typeck.c (mark_addressable): Don't assume a FUNCTION_DECL diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index be2d504303bc..318d90975b9a 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -11615,8 +11615,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)