This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch AArch64] Use default_elf_asm_named_section instead of special cased hook
- From: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>
- To: Ramana Radhakrishnan <ramana dot radhakrishnan at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 2 Oct 2015 13:46:11 +0100
- Subject: Re: [Patch AArch64] Use default_elf_asm_named_section instead of special cased hook
- Authentication-results: sourceware.org; auth=none
- References: <20151002100806 dot GA18049 at e105545-lin>
On 2 October 2015 at 11:08, Ramana Radhakrishnan
<ramana.radhakrishnan@arm.com> wrote:
> * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Use
> default_elf_asm_named_section.
> * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
> ---
> gcc/config/aarch64/aarch64-elf.h | 2 +-
> gcc/config/aarch64/aarch64.c | 74 ----------------------------------------
> 2 files changed, 1 insertion(+), 75 deletions(-)
>
> diff --git a/gcc/config/aarch64/aarch64-elf.h b/gcc/config/aarch64/aarch64-elf.h
> index 1ce6343..70aa845 100644
> --- a/gcc/config/aarch64/aarch64-elf.h
> +++ b/gcc/config/aarch64/aarch64-elf.h
> @@ -154,7 +154,7 @@ ASM_MABI_SPEC
> #define TYPE_OPERAND_FMT "%%%s"
>
> #undef TARGET_ASM_NAMED_SECTION
> -#define TARGET_ASM_NAMED_SECTION aarch64_elf_asm_named_section
> +#define TARGET_ASM_NAMED_SECTION default_elf_asm_named_section
Isn't it sufficient to simply remove the #define completely and rely
on the default from elfos.h?
/M