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
This commit is contained in:
Richard Henderson 2002-03-24 16:44:36 -08:00 committed by Richard Henderson
parent 479e51f6ed
commit 1bd6476f2e
4 changed files with 14 additions and 12 deletions

View file

@ -1,3 +1,8 @@
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.

View file

@ -1,3 +1,7 @@
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

View file

@ -1,4 +1,6 @@
/* { 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 } } */

View file

@ -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