]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gas.h: New file.
authorMikael Pettersson <mikpe@it.uu.se>
Thu, 18 Feb 2010 03:49:04 +0000 (04:49 +0100)
committerDavid S. Miller <davem@gcc.gnu.org>
Thu, 18 Feb 2010 03:49:04 +0000 (19:49 -0800)
2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>

* config/sparc/gas.h: New file.  Restore
TARGET_ASM_NAMED_SECTION to its ELF default.
* config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
check !HAVE_GNU_AS.
* config/sparc/sparc.c (sparc_elf_asm_named_section):
Likewise.  Add ATTRIBUTE_UNUSED to prototype.
* config.gcc (sparc*-*-linux*): Include sparc/gas.h
after sparc/sysv4.h.

From-SVN: r156856

gcc/ChangeLog
gcc/config.gcc
gcc/config/sparc/gas.h [new file with mode: 0644]
gcc/config/sparc/sparc.c
gcc/config/sparc/sysv4.h

index e1acf6202df99d1bc7633bd308830200ab3f1196..5b13461781c7c26eeae4dbb44dc1a2ac70828c5f 100644 (file)
@@ -1,3 +1,14 @@
+2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
+
+       * config/sparc/gas.h: New file.  Restore
+       TARGET_ASM_NAMED_SECTION to its ELF default.
+       * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
+       check !HAVE_GNU_AS.
+       * config/sparc/sparc.c (sparc_elf_asm_named_section):
+       Likewise.  Add ATTRIBUTE_UNUSED to prototype.
+       * config.gcc (sparc*-*-linux*): Include sparc/gas.h
+       after sparc/sysv4.h.
+
 2010-02-16  Paolo Bonzini  <bonzini@gnu.org>
 
        PR rtl-optimization/41917
index c6b0974217677312a390c4f6adbace7f34e06096..7a8c5d54b4c45585bf68d40b049926c7a754da13 100644 (file)
@@ -2342,7 +2342,7 @@ sparc-*-elf*)
        use_fixproto=yes
        ;;
 sparc-*-linux*)                # SPARC's running GNU/Linux, libc6
-       tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
+       tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/gas.h sparc/linux.h"
        extra_options="${extra_options} sparc/long-double-switch.opt"
        tmake_file="${tmake_file} sparc/t-linux sparc/t-crtfm"
        ;;
@@ -2476,7 +2476,7 @@ sparc64-*-freebsd*|ultrasparc-*-freebsd*)
        need_64bit_hwint=yes
        ;;
 sparc64-*-linux*)              # 64-bit SPARC's running GNU/Linux
-       tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
+       tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/gas.h sparc/linux64.h"
        extra_options="${extra_options} sparc/long-double-switch.opt"
        tmake_file="${tmake_file} sparc/t-linux sparc/t-linux64 sparc/t-crtfm"
        ;;
diff --git a/gcc/config/sparc/gas.h b/gcc/config/sparc/gas.h
new file mode 100644 (file)
index 0000000..e377929
--- /dev/null
@@ -0,0 +1,6 @@
+/* Definitions of target machine for GCC, for SPARC
+   using the GNU assembler.  */
+
+/* Switch into a generic section.  */
+#undef TARGET_ASM_NAMED_SECTION
+#define TARGET_ASM_NAMED_SECTION  default_elf_asm_named_section
index 37f38acdc529bbd8aabfd73a58b2d4044224b291..bec731ffed09ba1c2adadba96d7c646a73aa1ef9 100644 (file)
@@ -371,8 +371,9 @@ 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) && !HAVE_GNU_AS
-static void sparc_elf_asm_named_section (const char *, unsigned int, tree);
+#if defined (OBJECT_FORMAT_ELF)
+static void sparc_elf_asm_named_section (const char *, unsigned int, tree)
+    ATTRIBUTE_UNUSED;
 #endif
 
 static int sparc_adjust_cost (rtx, rtx, rtx, int);
@@ -7786,7 +7787,7 @@ sparc_profile_hook (int labelno)
   emit_library_call (fun, LCT_NORMAL, VOIDmode, 1, lab, Pmode);
 }
 \f
-#if defined (OBJECT_FORMAT_ELF) && !HAVE_GNU_AS
+#if defined (OBJECT_FORMAT_ELF)
 static void
 sparc_elf_asm_named_section (const char *name, unsigned int flags,
                             tree decl)
index 9adf4a7bdc84b4b7a843f0964c13c5622dda00ce..8b3984bee1c8b93d7505576bfb387f014214edca 100644 (file)
@@ -126,11 +126,9 @@ 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"
 
-#if !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) \