diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-04-10 12:20:36 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-04-10 12:20:36 +0000 |
commit | 6319e58dfd915c8e1dac985c7c0c05e0e15f213b (patch) | |
tree | e6a9f06005fc6578dd312600bb1a5f8ba5dd8803 /gcc/varasm.c | |
parent | 1f57d1e5376f3915b10499ad2cd05a75516ad075 (diff) | |
download | gcc-6319e58dfd915c8e1dac985c7c0c05e0e15f213b.tar.gz |
(make_decl_rtl): Allow section attribute if -fno-common or variable is
not to be placed in common for some other reason.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9348 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 818628ba273..865de4813e8 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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'"); |