OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
743d584
)
(finish_decl): Allow file-scope static incomplete array.
author
rms
<rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Aug 1993 08:48:29 +0000
(08:48 +0000)
committer
rms
<rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Aug 1993 08:48:29 +0000
(08:48 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5094
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/c-decl.c
patch
|
blob
|
history
diff --git
a/gcc/c-decl.c
b/gcc/c-decl.c
index
734577a
..
65ff9f7
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. */