diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1995-04-25 16:11:10 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1995-04-25 16:11:10 -0700 |
commit | be0f1cf29635ee4e8186eff59e16eb91ad19ad8d (patch) | |
tree | 6947cb3be4d4844bb28e092acd00e7d72a77b39a | |
parent | d8b679b944c7fbffdcb8df1ff8d68d5909b9678b (diff) | |
download | gcc-be0f1cf29635ee4e8186eff59e16eb91ad19ad8d.zip gcc-be0f1cf29635ee4e8186eff59e16eb91ad19ad8d.tar.gz gcc-be0f1cf29635ee4e8186eff59e16eb91ad19ad8d.tar.bz2 |
(pushdecl): Don't test DECL_EXTERNAL when deciding whether
to register a duplicate decl in the current block.
From-SVN: r9465
-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 1e3a241..97b4adf 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; } |