diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-04-25 23:11:10 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-04-25 23:11:10 +0000 |
commit | 9871b8fdc3ae6d2c391b24aba689394272a623af (patch) | |
tree | 6947cb3be4d4844bb28e092acd00e7d72a77b39a /gcc/c-decl.c | |
parent | 920e4f92f371624a616cec7df7b0c52f23ce0cc0 (diff) |
(pushdecl): Don't test DECL_EXTERNAL when deciding whether
to register a duplicate decl in the current block.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9465 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 1e3a241c205..97b4adfcd91 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; } |