diff options
author | Richard Stallman <rms@gnu.org> | 1993-10-30 08:33:30 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-10-30 08:33:30 +0000 |
commit | 708e813b0c299c6ac5d4b77cec5fa075a2d8bd41 (patch) | |
tree | 16163fc7dadc7a799c0f134de99f2b0d9d290ed9 | |
parent | 27937f463c0e5b48554dedf0cd58ec62adb219db (diff) | |
download | gcc-708e813b0c299c6ac5d4b77cec5fa075a2d8bd41.zip gcc-708e813b0c299c6ac5d4b77cec5fa075a2d8bd41.tar.gz gcc-708e813b0c299c6ac5d4b77cec5fa075a2d8bd41.tar.bz2 |
(finish_function): If rest_of_compilation set DECL_INITIAL
to null, leave it null.
From-SVN: r5943
-rw-r--r-- | gcc/c-decl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 888f9be..bb2ad12 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; } |