re PR c/15360 (c99: extern w/initializer; extern w/internal linkage)
authorJoseph Myers <jsm@polyomino.org.uk>
Sun, 25 Jul 2004 18:42:24 +0000 (19:42 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sun, 25 Jul 2004 18:42:24 +0000 (19:42 +0100)
commitbbbcb2e1c4e122b5e10c3439c271ab0e00adbf08
treed3c7f6481189c072679dc6bb540f8fc40de014c8
parent07a434923a44d1a7aecb0859aa22f10e2e26656a
re PR c/15360 (c99: extern w/initializer; extern w/internal linkage)

PR c/15360
* c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
declarations until after calling pushdecl.
(grokdeclarator): Set DECL_EXTERNAL for variables based on use of
"extern" and not on whether the declaration is initialized.

testsuite:
* gcc.dg/pr15360-1.c: New test.

From-SVN: r85156
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr15360-1.c [new file with mode: 0644]