]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sysv4.h (TARGET_ASM_NAMED_SECTION): Only define if not using GAS.
authorDavid S. Miller <davem@davemloft.net>
Mon, 25 Jan 2010 10:34:07 +0000 (10:34 +0000)
committerDavid S. Miller <davem@gcc.gnu.org>
Mon, 25 Jan 2010 10:34:07 +0000 (02:34 -0800)
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: r156204

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

index 4f7ad194ccc5678cf6288f6ca0cad5439eca7a3a..03045ec2966be75162772c9d3bab6cb97bb7e82b 100644 (file)
@@ -1,3 +1,11 @@
+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-21  Felyza Wishbringer  <fwishbringer@gmail.com>
 
        PR bootstrap/42786
index a5514cbc3ceada1424bf04b5a0d00c5c730fd061..160e1c115fd4f86dec509443dce052b740f82dc9 100644 (file)
@@ -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);
 }
 \f
-#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))
index 1c60debf85064e1b3f2a8114942a765d7bf4ac17..c3282eaf7d9506d92716d50e8d0294d63f129b86 100644 (file)
@@ -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) \