From af673a52ecdd01678e5e7c069249f8506631d983 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Mon, 29 Jul 2002 19:01:55 +0000 Subject: [PATCH] varasm.c (assemble_variable): Narrow test for uninitialized without BSS target support. * varasm.c (assemble_variable): Narrow test for uninitialized without BSS target support. From-SVN: r55843 --- gcc/ChangeLog | 5 +++++ gcc/varasm.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d0731f83bb..abcb381ade2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-07-29 David Edelsohn + + * varasm.c (assemble_variable): Narrow test for uninitialized + without BSS target support. + 2002-07-29 Nathan Sidwell * profile.c: Add file comment describing the overall algorithm and diff --git a/gcc/varasm.c b/gcc/varasm.c index 435f6f759aa..ce6f7318320 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1598,7 +1598,9 @@ assemble_variable (decl, top_level, at_end, dont_output_data) in .bss, then we have to use .data. */ /* ??? We should handle .bss via select_section mechanisms rather than via special target hooks. That would eliminate this special case. */ - else if (!DECL_COMMON (decl)) + /* Duplicate BSS test in asm_emit_uninitialized instead of having it + return success or failure for that case. Shrug. */ + else if (TREE_PUBLIC (decl) && !DECL_COMMON (decl)) ; #endif else if (DECL_INITIAL (decl) == 0 -- 2.30.2