(pushdecl): Don't test DECL_EXTERNAL when deciding whether
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 25 Apr 1995 23:11:10 +0000 (16:11 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 25 Apr 1995 23:11:10 +0000 (16:11 -0700)
to register a duplicate decl in the current block.

From-SVN: r9465

gcc/c-decl.c

index 1e3a241..97b4adf 100644 (file)
@@ -1947,8 +1947,7 @@ pushdecl (x)
          /* If this is a global decl, and there exists a conflicting local
             decl in a parent block, then we can't return as yet, because we
             need to register this decl in the current binding block.  */
-         if (! DECL_EXTERNAL (x) || ! TREE_PUBLIC (x)
-             || lookup_name (name) == t)
+         if (! TREE_PUBLIC (x) || lookup_name (name) == t)
            return t;
        }