* 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
+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>
+
+ * 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 } } */
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)
{
}
}
- resolve_unique_section (decl, 0);
-
switch (destination)
{
#ifdef ASM_EMIT_BSS