projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27937f4
)
(finish_function): If rest_of_compilation set DECL_INITIAL
author
Richard Stallman
<rms@gnu.org>
Sat, 30 Oct 1993 08:33:30 +0000
(08:33 +0000)
committer
Richard Stallman
<rms@gnu.org>
Sat, 30 Oct 1993 08:33:30 +0000
(08:33 +0000)
to null, leave it null.
From-SVN: r5943
gcc/c-decl.c
patch
|
blob
|
history
diff --git
a/gcc/c-decl.c
b/gcc/c-decl.c
index 888f9be676eca51e5a177179eb155d8a9d5c0da3..bb2ad125c1a06c81cd84a887fcca9771d287bb50 100644
(file)
--- 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;
}