Commit 00f88f07 by David S. Miller Committed by David S. Miller

sysv4.h (TARGET_ASM_NAMED_SECTION): Only define if not using GAS.

2010-01-24  David S. Miller  <davem@davemloft.net>

	* 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: r156203
parent d147cbd9
2010-01-24 David S. Miller <davem@davemloft.net>
* 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-24 Mark Mitchell <mark@codesourcery.com> 2010-01-24 Mark Mitchell <mark@codesourcery.com>
PR c++/42748 PR c++/42748
......
...@@ -368,7 +368,7 @@ static int save_or_restore_regs (int, int, rtx, int, int); ...@@ -368,7 +368,7 @@ static int save_or_restore_regs (int, int, rtx, int, int);
static void emit_save_or_restore_regs (int); static void emit_save_or_restore_regs (int);
static void sparc_asm_function_prologue (FILE *, HOST_WIDE_INT); static void sparc_asm_function_prologue (FILE *, HOST_WIDE_INT);
static void sparc_asm_function_epilogue (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); static void sparc_elf_asm_named_section (const char *, unsigned int, tree);
#endif #endif
...@@ -7986,19 +7986,11 @@ sparc_profile_hook (int labelno) ...@@ -7986,19 +7986,11 @@ sparc_profile_hook (int labelno)
} }
} }
#ifdef OBJECT_FORMAT_ELF #if defined (OBJECT_FORMAT_ELF) && !defined (HAVE_GNU_AS)
static void static void
sparc_elf_asm_named_section (const char *name, unsigned int flags, sparc_elf_asm_named_section (const char *name, unsigned int flags,
tree decl) 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); fprintf (asm_out_file, "\t.section\t\"%s\"", name);
if (!(flags & SECTION_DEBUG)) if (!(flags & SECTION_DEBUG))
......
/* Target definitions for GNU compiler for SPARC running System V.4 /* Target definitions for GNU compiler for SPARC running System V.4
Copyright (C) 1991, 1992, 1995, 1996, 1997, 1998, 2000, 2002, 2007, 2009 Copyright (C) 1991, 1992, 1995, 1996, 1997, 1998, 2000, 2002, 2007, 2009,
2010
Free Software Foundation, Inc. Free Software Foundation, Inc.
Contributed by Ron Guilmette (rfg@monkeys.com). Contributed by Ron Guilmette (rfg@monkeys.com).
...@@ -126,9 +127,11 @@ do { ASM_OUTPUT_ALIGN ((FILE), Pmode == SImode ? 2 : 3); \ ...@@ -126,9 +127,11 @@ do { ASM_OUTPUT_ALIGN ((FILE), Pmode == SImode ? 2 : 3); \
#undef DTORS_SECTION_ASM_OP #undef DTORS_SECTION_ASM_OP
#define DTORS_SECTION_ASM_OP "\t.section\t\".dtors\",#alloc,#write" #define DTORS_SECTION_ASM_OP "\t.section\t\".dtors\",#alloc,#write"
#ifndef HAVE_GNU_AS
/* Switch into a generic section. */ /* Switch into a generic section. */
#undef TARGET_ASM_NAMED_SECTION #undef TARGET_ASM_NAMED_SECTION
#define TARGET_ASM_NAMED_SECTION sparc_elf_asm_named_section #define TARGET_ASM_NAMED_SECTION sparc_elf_asm_named_section
#endif
#undef ASM_OUTPUT_ALIGNED_BSS #undef ASM_OUTPUT_ALIGNED_BSS
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \ #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment