Don't make unsized objects into extern.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 15 Aug 2018 11:45:44 +0000 (11:45 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Wed, 15 Aug 2018 11:45:44 +0000 (11:45 +0000)
commit7273331429916a0c203b1064e0414c741c06a78f
tree85d44fb86970e37b0e74a8cfc826e11d25919208
parent05c1e87adbc09a2c90155d5d5d05cf866d39c9e2
Don't make unsized objects into extern.

2018-08-15  Iain Sandoe <iain@sandoe.co.uk>

gcc/c:

        PR c/19315
        * c-decl.c (finish_decl): Don't add the 'extern' storage class to
        objects of unknown size.

gcc/testsuite:

        PR c/19315
        gcc.dg/graphite/pr82451.c: Make array 'a' an extern.
        gcc.dg/redecl-10.c: Expect warnings for the static vars with unknown
        size.

From-SVN: r263556
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/pr82451.c
gcc/testsuite/gcc.dg/redecl-10.c