re PR c/12738 (Missing function with 'static' block-scope declaration; unit-at-a...
authorGeoffrey Keating <geoffk@apple.com>
Mon, 30 Aug 2004 22:19:24 +0000 (22:19 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Mon, 30 Aug 2004 22:19:24 +0000 (22:19 +0000)
commitff164b22d364c830b43d08e521a768b2a2957bbc
tree0a03574db9fe3cc658f3e39c3b39e37c3aa5c726
parente2cad04b2825ff91d12ebe595c91bbf3cf824fcc
re PR c/12738 (Missing function with 'static' block-scope declaration; unit-at-a-time; and IMA.)

2004-08-30  Geoffrey Keating  <geoffk@apple.com>

PR 12738
PR 17205
Radar 3460526
Radar 3775729
* c-decl.c (grokdeclarator): Produce error for 'static' on local
function declaration.

Index: testsuite/ChangeLog
2004-08-30  Geoffrey Keating  <geoffk@apple.com>

* gcc.dg/funcdef-storage-1.c: New.
* gcc.c-torture/compile/920625-2.c: Don't use 'static' to declare
an extern function in local scope.
* gcc.c-torture/execute/20010605-1.c: Don't use 'static inline' to
declare an 'auto inline' function in local scope.
* gcc.dg/20011130-1.c: Likewise.
* gcc.c-torture/execute/nest-stdar-1.c: Don't use 'static' to declare
an 'auto' function in local scope.
* gcc.dg/20021014-1.c: Likewise.
* gcc.dg/20030331-2.c: Likewise.

From-SVN: r86807
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/920625-2.c
gcc/testsuite/gcc.c-torture/execute/20010605-1.c
gcc/testsuite/gcc.c-torture/execute/nest-stdar-1.c
gcc/testsuite/gcc.dg/20011130-1.c
gcc/testsuite/gcc.dg/20021014-1.c
gcc/testsuite/gcc.dg/20030331-2.c
gcc/testsuite/gcc.dg/funcdef-storage-1.c [new file with mode: 0644]