From: Rainer Orth Date: Wed, 27 Jan 2010 08:12:27 +0000 (+0100) Subject: sparc.c (sparc_elf_asm_named_section): Test for HAVE_GNU_AS value. X-Git-Tag: releases/gcc-4.3.5~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b80737cce43dae260c5b7d123a6bd1c40df45539;p=thirdparty%2Fgcc.git sparc.c (sparc_elf_asm_named_section): Test for HAVE_GNU_AS value. * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for HAVE_GNU_AS value. * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION): Test for HAVE_GNU_AS value. From-SVN: r156274 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 86c7e34e01fc..46692cb2fc17 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2010-01-26 Rainer Orth + + * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for + HAVE_GNU_AS value. + * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION): + Test for HAVE_GNU_AS value. + 2010-01-25 Christian Bruel PR target/42841 @@ -7,9 +14,9 @@ 2010-01-24 David S. Miller - * gcc/config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only + * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only define if not using GAS. - * gcc/config/sparc/sparc.c (sparc_elf_asm_named_section): + * config/sparc/sparc.c (sparc_elf_asm_named_section): Likewise. Delete SECTION_MERGE code, which is only applicable when using GAS. diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 160e1c115fd4..37f38acdc529 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -1,6 +1,6 @@ /* Subroutines for insn-output.c for SPARC. Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2010 Free Software Foundation, Inc. Contributed by Michael Tiemann (tiemann@cygnus.com) 64-bit SPARC-V9 support by Michael Tiemann, Jim Wilson, and Doug Evans, @@ -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); -#if defined (OBJECT_FORMAT_ELF) && !defined (HAVE_GNU_AS) +#if defined (OBJECT_FORMAT_ELF) && !HAVE_GNU_AS static void sparc_elf_asm_named_section (const char *, unsigned int, tree); #endif @@ -7786,7 +7786,7 @@ sparc_profile_hook (int labelno) emit_library_call (fun, LCT_NORMAL, VOIDmode, 1, lab, Pmode); } -#if defined (OBJECT_FORMAT_ELF) && !defined (HAVE_GNU_AS) +#if defined (OBJECT_FORMAT_ELF) && !HAVE_GNU_AS static void sparc_elf_asm_named_section (const char *name, unsigned int flags, tree decl) diff --git a/gcc/config/sparc/sysv4.h b/gcc/config/sparc/sysv4.h index c3282eaf7d95..9adf4a7bdc84 100644 --- a/gcc/config/sparc/sysv4.h +++ b/gcc/config/sparc/sysv4.h @@ -126,7 +126,7 @@ 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 +#if !HAVE_GNU_AS /* Switch into a generic section. */ #undef TARGET_ASM_NAMED_SECTION #define TARGET_ASM_NAMED_SECTION sparc_elf_asm_named_section