This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR 8333
- From: Mark Mitchell <mark at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Oct 2002 11:12:38 -0800
- Subject: PATCH: PR 8333
- Reply-to: mark at codesourcery dot com
We were emitting ".globl" directives twice for some symbols, which
does not make the SCO assembler happy, and is unncessary everywhere.
Since asm_output_aligned_bss is only called from
asm_emit_unitiailised, and since that function calls globalize_decl
whenever it would call asm_output_alinged_bss, I decided to remove the
ASM_GLOBALIZE_LABEL call from asm_output_aligned_bss.
Bootstrapped, tested on i686-pc-linux-gnu; applied on the mainline and
on the branch.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2002-10-30 Mark Mitchell <mark@codesourcery.com>
PR c++/8333
* varasm.c (asm_output_aligned_bss): Do not call
ASM_GLOBALIZE_LABEL.
Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.250.2.14.2.1
diff -c -p -r1.250.2.14.2.1 varasm.c
*** varasm.c 6 Oct 2002 23:02:05 -0000 1.250.2.14.2.1
--- varasm.c 30 Oct 2002 19:09:46 -0000
*************** asm_output_aligned_bss (file, decl, name
*** 535,541 ****
const char *name;
int size, align;
{
- ASM_GLOBALIZE_LABEL (file, name);
bss_section ();
ASM_OUTPUT_ALIGN (file, floor_log2 (align / BITS_PER_UNIT));
#ifdef ASM_DECLARE_OBJECT_NAME
--- 535,540 ----