From be0f1cf29635ee4e8186eff59e16eb91ad19ad8d Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 25 Apr 1995 16:11:10 -0700 Subject: [PATCH] (pushdecl): Don't test DECL_EXTERNAL when deciding whether to register a duplicate decl in the current block. From-SVN: r9465 --- gcc/c-decl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 1e3a241c2056..97b4adfcd910 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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; } -- 2.43.5