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:
parent
479e51f6ed
commit
1bd6476f2e
4 changed files with 14 additions and 12 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 } } */
|
||||
|
||||
|
|
15
gcc/varasm.c
15
gcc/varasm.c
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue