From f537695d6332d04ed25d6364af6b1c7a27e03752 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 4 Jun 1996 23:42:33 +0000 Subject: (start_decl): Always set DECL_COMMON on statics. From-SVN: r12158 --- gcc/c-decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') 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. */ -- cgit v1.1