Commit 4580042b by Richard Kenner

(make_decl_rtl): Allow section attribute if...

(make_decl_rtl): Allow section attribute if -fno-common or variable is
not to be placed in common for some other reason.

From-SVN: r9348
parent bbb1ae01
......@@ -538,7 +538,9 @@ make_decl_rtl (decl, asmspec, top_level)
unit that behaved thusly). So warn the user. */
else if (TREE_CODE (decl) == VAR_DECL
&& DECL_SECTION_NAME (decl) != NULL_TREE
&& DECL_INITIAL (decl) == NULL_TREE)
&& DECL_INITIAL (decl) == NULL_TREE
&& DECL_COMMON (decl)
&& ! flag_no_common)
{
warning_with_decl (decl,
"section attribute ignored for uninitialized variable `%s'");
......
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