aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMikael Pettersson <mikpe@it.uu.se>2010-02-18 04:28:52 +0100
committerDavid S. Miller <davem@gcc.gnu.org>2010-02-17 19:28:52 -0800
commitccb265d66e333378076c8be0bb0a64392c54aa38 (patch)
treeba7254e12dd46dbf6dfae249faf298c5d74f1356 /gcc
parentc226be28436ade27e1802fad1f67a18ab140744e (diff)
downloadgcc-ccb265d66e333378076c8be0bb0a64392c54aa38.zip
gcc-ccb265d66e333378076c8be0bb0a64392c54aa38.tar.gz
gcc-ccb265d66e333378076c8be0bb0a64392c54aa38.tar.bz2
gas.h: New file.
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: r156854
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/config.gcc4
-rw-r--r--gcc/config/sparc/gas.h6
-rw-r--r--gcc/config/sparc/sparc.c7
-rw-r--r--gcc/config/sparc/sysv4.h2
5 files changed, 23 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b13e1df..42d4a23 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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-17 Dave Korn <dave.korn.cygwin@gmail.com>
* config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 849e667..06b3daa 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2354,7 +2354,7 @@ sparc-*-elf*)
extra_parts="crti.o crtn.o crtbegin.o crtend.o"
;;
sparc-*-linux*) # SPARC's running GNU/Linux, libc6
- tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h linux.h glibc-stdint.h"
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/gas.h linux.h glibc-stdint.h"
extra_options="${extra_options} sparc/long-double-switch.opt"
tmake_file="${tmake_file} sparc/t-linux"
if test x$enable_targets = xall; then
@@ -2474,7 +2474,7 @@ sparc64-*-freebsd*|ultrasparc-*-freebsd*)
esac
;;
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 linux.h glibc-stdint.h sparc/linux64.h"
+ tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/gas.h linux.h glibc-stdint.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
index 0000000..e377929
--- /dev/null
+++ b/gcc/config/sparc/gas.h
@@ -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
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index f48536f..f366f78 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -368,8 +368,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);
@@ -7986,7 +7987,7 @@ sparc_profile_hook (int labelno)
}
}
-#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 ATTRIBUTE_UNUSED)
diff --git a/gcc/config/sparc/sysv4.h b/gcc/config/sparc/sysv4.h
index d1fdb0e..7620711 100644
--- a/gcc/config/sparc/sysv4.h
+++ b/gcc/config/sparc/sysv4.h
@@ -127,11 +127,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) \