From: Mikael Pettersson Date: Thu, 18 Feb 2010 03:28:52 +0000 (+0100) Subject: gas.h: New file. X-Git-Tag: releases/gcc-4.5.0~732 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ccb265d66e333378076c8be0bb0a64392c54aa38;p=thirdparty%2Fgcc.git gas.h: New file. 2010-02-17 Mikael Pettersson * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b13e1df7eb88..42d4a23e8a56 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2010-02-17 Mikael Pettersson + + * 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 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name. diff --git a/gcc/config.gcc b/gcc/config.gcc index 849e66767fcf..06b3daa7c2e8 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 000000000000..e3779293532d --- /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 f48536ffc6f4..f366f78aaa92 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 d1fdb0e32ea4..7620711d3b6b 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) \