projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e40eab
)
(finish_decl): Allow file-scope static incomplete array.
author
Richard Stallman
<rms@gnu.org>
Sat, 7 Aug 1993 08:48:29 +0000
(08:48 +0000)
committer
Richard Stallman
<rms@gnu.org>
Sat, 7 Aug 1993 08:48:29 +0000
(08:48 +0000)
From-SVN: r5094
gcc/c-decl.c
patch
|
blob
|
history
diff --git
a/gcc/c-decl.c
b/gcc/c-decl.c
index 734577a24505ba8afee13b0d60f29cbb1366584e..65ff9f7a6891cd6c3b97d4ff35454a2d7e751449 100644
(file)
--- a/
gcc/c-decl.c
+++ b/
gcc/c-decl.c
@@
-3459,10
+3459,10
@@
finish_decl (decl, init, asmspec_tree)
&& (TREE_STATIC (decl)
?
/* A static variable with an incomplete type
- is an error if it is initialized
or `static'
.
+ is an error if it is initialized.
Otherwise, let it through, but if it is not `extern'
then it may cause an error message later. */
- !TREE_PUBLIC (decl) || DECL_INITIAL (decl)
+ DECL_INITIAL (decl) != 0
:
/* An automatic variable with an incomplete type
is an error. */