]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sparc.c (sparc_elf_asm_named_section): Test for HAVE_GNU_AS value.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 27 Jan 2010 08:12:27 +0000 (09:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 27 Jan 2010 08:12:27 +0000 (09:12 +0100)
* 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

gcc/ChangeLog
gcc/config/sparc/sparc.c
gcc/config/sparc/sysv4.h

index 86c7e34e01fc29f797ebb3ca8dda86e9895384e0..46692cb2fc17a0a541c7ada5e1b39257e82c356d 100644 (file)
@@ -1,3 +1,10 @@
+2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * 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  <christian.bruel@st.com>
 
        PR target/42841
@@ -7,9 +14,9 @@
 
 2010-01-24  David S. Miller  <davem@davemloft.net>
 
-       * 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.
 
index 160e1c115fd4f86dec509443dce052b740f82dc9..37f38acdc529bbd8aabfd73a58b2d4044224b291 100644 (file)
@@ -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);
 }
 \f
-#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)
index c3282eaf7d9506d92716d50e8d0294d63f129b86..9adf4a7bdc84b4b7a843f0964c13c5622dda00ce 100644 (file)
@@ -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