summaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authormerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>1996-06-04 23:42:33 +0000
committermerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>1996-06-04 23:42:33 +0000
commit6b56be8fa0a3fcc2f02167a91bbcbd4e3f3a4b02 (patch)
tree30976dacc0faa017c7b4fa2d38ff87d4a07964db /gcc/c-decl.c
parent14b36cfbb06f93f75d0402032ddd3015e8413706 (diff)
downloadgcc-6b56be8fa0a3fcc2f02167a91bbcbd4e3f3a4b02.tar.gz
(start_decl): Always set DECL_COMMON on statics.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12158 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index c89ee1d9fac..de3f1c1fe71 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -3620,7 +3620,7 @@ start_decl (declarator, declspecs, initialized, attributes, prefix_attributes)
initializer equal to zero. (Section 3.7.2)
-fno-common gives strict ANSI behavior. Usually you don't want it.
This matters only for variables with external linkage. */
- if (! flag_no_common)
+ if (! flag_no_common || ! TREE_PUBLIC (decl))
DECL_COMMON (decl) = 1;
/* Set attributes here so if duplicate decl, will have proper attributes. */