Commit 29495994 by Richard Kenner Committed by Richard Kenner

* c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.

From-SVN: r67096
parent 0aef8de2
2003-05-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
2003-05-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2003-05-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers. * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
......
...@@ -1543,6 +1543,7 @@ duplicate_decls (newdecl, olddecl, different_binding_level) ...@@ -1543,6 +1543,7 @@ duplicate_decls (newdecl, olddecl, different_binding_level)
/* Return any external DECL associated with ID, whether or not it is /* Return any external DECL associated with ID, whether or not it is
currently in scope. */ currently in scope. */
static tree static tree
any_external_decl (id) any_external_decl (id)
tree id; tree id;
...@@ -1550,7 +1551,9 @@ any_external_decl (id) ...@@ -1550,7 +1551,9 @@ any_external_decl (id)
tree decl = IDENTIFIER_SYMBOL_VALUE (id); tree decl = IDENTIFIER_SYMBOL_VALUE (id);
tree t; tree t;
if (decl && TREE_CODE (decl) != TYPE_DECL && DECL_EXTERNAL (decl)) if (decl == 0 || TREE_CODE (decl) == ERROR_MARK)
return 0;
else if (TREE_CODE (decl) != TYPE_DECL && DECL_EXTERNAL (decl))
return decl; return decl;
t = purpose_member (id, truly_local_externals); t = purpose_member (id, truly_local_externals);
......
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