OSDN Git Service

(finish_function): If rest_of_compilation set DECL_INITIAL
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Oct 1993 08:33:30 +0000 (08:33 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Oct 1993 08:33:30 +0000 (08:33 +0000)
to null, leave it null.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5943 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-decl.c

index 888f9be..bb2ad12 100644 (file)
@@ -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;
     }