aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorJoseph Myers <jsm@polyomino.org.uk>2004-10-05 20:54:26 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2004-10-05 20:54:26 +0100
commit1b36c8183586b92176cd67dc2250623632120a4c (patch)
treefd7f6fee9d8f05210df58bc5a67a9559ca8f660e /gcc/c-decl.c
parent95740bfc809797d22f2597582df641daf537e38e (diff)
downloadgcc-1b36c8183586b92176cd67dc2250623632120a4c.zip
gcc-1b36c8183586b92176cd67dc2250623632120a4c.tar.gz
gcc-1b36c8183586b92176cd67dc2250623632120a4c.tar.bz2
c-decl.c (pushdecl): When an extern declaration at block scope refers to a visible entity with...
* c-decl.c (pushdecl): When an extern declaration at block scope refers to a visible entity with internal linkage, use the old DECL rather than the new one. testsuite: * gcc.c-torture/compile/20041005-1.c: New test. From-SVN: r88570
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index cd003a3..415a757 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -2046,6 +2046,7 @@ pushdecl (tree x)
just need to fall through to make the declaration in
this scope. */
nested = true;
+ x = visdecl;
}
else
{