Commit 1bd6476f by Richard Henderson Committed by Richard Henderson

varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.

        * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
        Do resolve_unique_section before shared data clause.

        * gcc.dg/weak-1.c: Use -fno-common.

From-SVN: r51289
parent 479e51f6
2002-03-24 Richard Henderson <rth@redhat.com>
* varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
Do resolve_unique_section before shared data clause.
2002-03-24 Richard Henderson <rth@redhat.com>
* config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2002-03-24 Richard Henderson <rth@redhat.com>
......
2002-03-24 Richard Henderson <rth@redhat.com>
* gcc.dg/weak-1.c: Use -fno-common.
2002-03-25 David Billinghurst <David.Billinghurst@riotinto.com>
* g77.dg/f77-edit-apostrophe-out.f: New test
......
/* { dg-do compile } */
/* { dg-options "-fno-common" } */
/* COFF does not support weak, and dg doesn't support UNSUPPORTED. */
/* { dg-do compile { xfail *-*-coff i?86-pc-cygwin } } */
......
......@@ -1395,16 +1395,9 @@ asm_emit_uninitialised (decl, name, size, rounded)
destination = asm_dest_common;
}
switch (destination)
{
case asm_dest_common:
if (! DECL_WEAK (decl))
break;
case asm_dest_bss:
globalize_decl (decl);
default:
break;
}
if (destination == asm_dest_bss)
globalize_decl (decl);
resolve_unique_section (decl, 0);
if (flag_shared_data)
{
......@@ -1430,8 +1423,6 @@ asm_emit_uninitialised (decl, name, size, rounded)
}
}
resolve_unique_section (decl, 0);
switch (destination)
{
#ifdef ASM_EMIT_BSS
......
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