From: Richard Stallman Date: Sat, 30 Oct 1993 08:33:30 +0000 (+0000) Subject: (finish_function): If rest_of_compilation set DECL_INITIAL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=708e813b0c299c6ac5d4b77cec5fa075a2d8bd41;p=gcc.git (finish_function): If rest_of_compilation set DECL_INITIAL to null, leave it null. From-SVN: r5943 --- diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 888f9be676e..bb2ad125c1a 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6485,7 +6485,9 @@ finish_function (nested) /* But DECL_INITIAL must remain nonzero so we know this was an actual function definition. */ /* For a nested function, this is done in pop_c_function_context. */ - DECL_INITIAL (fndecl) = error_mark_node; + /* If rest_of_compilation set this to 0, leave it 0. */ + if (DECL_INITIAL (fndecl) != 0) + DECL_INITIAL (fndecl) = error_mark_node; DECL_ARGUMENTS (fndecl) = 0; }