Commit 21432660 by Jim Wilson

(assemble_variable): Flag_no_common applies only if

external linkage.

From-SVN: r5019
parent 02892e06
...@@ -827,8 +827,9 @@ assemble_variable (decl, top_level, at_end, dont_output_data) ...@@ -827,8 +827,9 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
/* ANSI specifies that a tentative definition which is not merged with /* ANSI specifies that a tentative definition which is not merged with
a non-tentative definition behaves exactly like a definition with an a non-tentative definition behaves exactly like a definition with an
initializer equal to zero. (Section 3.7.2) initializer equal to zero. (Section 3.7.2)
-fno-common gives strict ANSI behavior. Usually you don't want it. */ -fno-common gives strict ANSI behavior. Usually you don't want it.
if (! flag_no_common This matters only for variables with external linkage. */
if ((! flag_no_common || ! TREE_PUBLIC (decl))
&& ! dont_output_data && ! dont_output_data
&& (DECL_INITIAL (decl) == 0 || DECL_INITIAL (decl) == error_mark_node)) && (DECL_INITIAL (decl) == 0 || DECL_INITIAL (decl) == error_mark_node))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment