projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9772d94
)
(finish_decl): Don't preserve initializer if it is error_mark_node.
author
Jim Wilson
<wilson@gcc.gnu.org>
Mon, 11 Apr 1994 17:42:41 +0000
(10:42 -0700)
committer
Jim Wilson
<wilson@gcc.gnu.org>
Mon, 11 Apr 1994 17:42:41 +0000
(10:42 -0700)
From-SVN: r7033
gcc/c-decl.c
patch
|
blob
|
history
diff --git
a/gcc/c-decl.c
b/gcc/c-decl.c
index c12d6732d337418bd636afddfc82b1ea48d2fe54..6055e3a844a2b584e69c94c7858a8a60fe8aa86c 100644
(file)
--- a/
gcc/c-decl.c
+++ b/
gcc/c-decl.c
@@
-3597,7
+3597,7
@@
finish_decl (decl, init, asmspec_tree)
/* We make an exception for inline functions, since it's
normal for a local extern redeclaration of an inline function
to have a copy of the top-level decl's DECL_INLINE. */
- if (DECL_INITIAL (decl) != 0)
+ if (DECL_INITIAL (decl) != 0
&& DECL_INITIAL (decl) != error_mark_node
)
{
/* If this is a const variable, then preserve the
initializer instead of discarding it so that we can optimize