aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1996-06-04 23:42:33 +0000
committerJason Merrill <merrill@gnu.org>1996-06-04 23:42:33 +0000
commitf537695d6332d04ed25d6364af6b1c7a27e03752 (patch)
tree30976dacc0faa017c7b4fa2d38ff87d4a07964db /gcc
parentcd98bf12d510bbb0cb8a733577f3237fbae69123 (diff)
downloadgcc-f537695d6332d04ed25d6364af6b1c7a27e03752.zip
gcc-f537695d6332d04ed25d6364af6b1c7a27e03752.tar.gz
gcc-f537695d6332d04ed25d6364af6b1c7a27e03752.tar.bz2
(start_decl): Always set DECL_COMMON on statics.
From-SVN: r12158
Diffstat (limited to 'gcc')
-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 c89ee1d..de3f1c1 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. */