Commit b68a40b2 by Fariborz Jahanian Committed by Fariborz Jahanian

retain DECL_COMMON of old declaration

Reviewed by Geoffrey Keating.

From-SVN: r72094
parent dff186db
2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
* c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
2003-10-03 Gerald Pfeifer <gerald@pfeifer.com> 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
* doc/extend.texi (Function Attributes): Fix title of GNU C * doc/extend.texi (Function Attributes): Fix title of GNU C
......
...@@ -1385,6 +1385,7 @@ duplicate_decls (tree newdecl, tree olddecl, int different_binding_level, ...@@ -1385,6 +1385,7 @@ duplicate_decls (tree newdecl, tree olddecl, int different_binding_level,
if (! DECL_EXTERNAL (newdecl)) if (! DECL_EXTERNAL (newdecl))
{ {
DECL_CONTEXT (newdecl) = DECL_CONTEXT (olddecl); DECL_CONTEXT (newdecl) = DECL_CONTEXT (olddecl);
DECL_COMMON (newdecl) = DECL_COMMON (olddecl);
/* If we have two non-EXTERNAL file-scope decls that are /* If we have two non-EXTERNAL file-scope decls that are
the same, only one of them should be written out. */ the same, only one of them should be written out. */
if (different_tu) if (different_tu)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment