From: David S. Miller Date: Mon, 25 Jan 2010 10:34:07 +0000 (+0000) Subject: sysv4.h (TARGET_ASM_NAMED_SECTION): Only define if not using GAS. X-Git-Tag: releases/gcc-4.3.5~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19ce11709e3ffe61320f29e0c9a4406e70e0bf54;p=thirdparty%2Fgcc.git sysv4.h (TARGET_ASM_NAMED_SECTION): Only define if not using GAS. 2010-01-24 David S. Miller * gcc/config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only define if not using GAS. * gcc/config/sparc/sparc.c (sparc_elf_asm_named_section): Likewise. Delete SECTION_MERGE code, which is only applicable when using GAS. From-SVN: r156204 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f7ad194ccc5..03045ec2966b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2010-01-24 David S. Miller + + * gcc/config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only + define if not using GAS. + * gcc/config/sparc/sparc.c (sparc_elf_asm_named_section): + Likewise. Delete SECTION_MERGE code, which is only applicable + when using GAS. + 2010-01-21 Felyza Wishbringer PR bootstrap/42786 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index a5514cbc3cea..160e1c115fd4 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -371,7 +371,7 @@ static int save_or_restore_regs (int, int, rtx, int, int); static void emit_save_or_restore_regs (int); static void sparc_asm_function_prologue (FILE *, HOST_WIDE_INT); static void sparc_asm_function_epilogue (FILE *, HOST_WIDE_INT); -#ifdef OBJECT_FORMAT_ELF +#if defined (OBJECT_FORMAT_ELF) && !defined (HAVE_GNU_AS) static void sparc_elf_asm_named_section (const char *, unsigned int, tree); #endif @@ -7786,19 +7786,11 @@ sparc_profile_hook (int labelno) emit_library_call (fun, LCT_NORMAL, VOIDmode, 1, lab, Pmode); } -#ifdef OBJECT_FORMAT_ELF +#if defined (OBJECT_FORMAT_ELF) && !defined (HAVE_GNU_AS) static void sparc_elf_asm_named_section (const char *name, unsigned int flags, tree decl) { - if (flags & SECTION_MERGE) - { - /* entsize cannot be expressed in this section attributes - encoding style. */ - default_elf_asm_named_section (name, flags, decl); - return; - } - fprintf (asm_out_file, "\t.section\t\"%s\"", name); if (!(flags & SECTION_DEBUG)) diff --git a/gcc/config/sparc/sysv4.h b/gcc/config/sparc/sysv4.h index 1c60debf8506..c3282eaf7d95 100644 --- a/gcc/config/sparc/sysv4.h +++ b/gcc/config/sparc/sysv4.h @@ -1,5 +1,5 @@ /* Target definitions for GNU compiler for SPARC running System V.4 - Copyright (C) 1991, 1992, 1995, 1996, 1997, 1998, 2000, 2002, 2007 + Copyright (C) 1991, 1992, 1995, 1996, 1997, 1998, 2000, 2002, 2007, 2010 Free Software Foundation, Inc. Contributed by Ron Guilmette (rfg@monkeys.com). @@ -126,9 +126,11 @@ do { ASM_OUTPUT_ALIGN ((FILE), Pmode == SImode ? 2 : 3); \ #undef DTORS_SECTION_ASM_OP #define DTORS_SECTION_ASM_OP "\t.section\t\".dtors\",#alloc,#write" +#ifndef HAVE_GNU_AS /* Switch into a generic section. */ #undef TARGET_ASM_NAMED_SECTION #define TARGET_ASM_NAMED_SECTION sparc_elf_asm_named_section +#endif #undef ASM_OUTPUT_ALIGNED_BSS #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \