projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e21df5
)
(duplicate_decls): Don't clear DECL_CONTEXT of new decl if it is a
author
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 6 Jun 1995 22:21:02 +0000
(18:21 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 6 Jun 1995 22:21:02 +0000
(18:21 -0400)
function.
From-SVN: r9893
gcc/c-decl.c
patch
|
blob
|
history
diff --git
a/gcc/c-decl.c
b/gcc/c-decl.c
index a162ed36973d1103b93f0107b2df4a090e5ef87c..e7beed87eddc62fa2fed9ac0d94c94766ecef791 100644
(file)
--- a/
gcc/c-decl.c
+++ b/
gcc/c-decl.c
@@
-1751,7
+1751,8
@@
duplicate_decls (newdecl, olddecl)
DECL_SOURCE_LINE (newdecl) = DECL_SOURCE_LINE (olddecl);
DECL_SOURCE_FILE (newdecl) = DECL_SOURCE_FILE (olddecl);
- if (DECL_CONTEXT (olddecl) == 0)
+ if (DECL_CONTEXT (olddecl) == 0
+ && TREE_CODE (newdecl) != FUNCTION_DECL)
DECL_CONTEXT (newdecl) = 0;
}