From: Eric Botcazou Date: Thu, 19 Nov 2015 11:49:32 +0000 (+0000) Subject: re PR target/68408 (broken support for attribute init_priority) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=05f44cf5de90b7adf109cda8ad30f6fa0268b9ca;p=gcc.git re PR target/68408 (broken support for attribute init_priority) PR target/68408 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine. (DTORS_SECTION_ASM_OP): Likewise. From-SVN: r230598 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5eb06466895..558b789ba53 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-11-19 Eric Botcazou + + PR target/68408 + * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine. + (DTORS_SECTION_ASM_OP): Likewise. + 2015-11-19 Jakub Jelinek PR rtl-optimization/68376 diff --git a/gcc/config/sparc/sp-elf.h b/gcc/config/sparc/sp-elf.h index 371bb6a767d..932e443420b 100644 --- a/gcc/config/sparc/sp-elf.h +++ b/gcc/config/sparc/sp-elf.h @@ -53,6 +53,10 @@ along with GCC; see the file COPYING3. If not see #undef ASM_GENERATE_INTERNAL_LABEL #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \ sprintf ((LABEL), "*.L%s%ld", (PREFIX), (long)(NUM)) + +/* We use GNU ld so undefine this so that attribute((init_priority)) works. */ +#undef CTORS_SECTION_ASM_OP +#undef DTORS_SECTION_ASM_OP /* ??? Inherited from sol2.h. Probably wrong. */ #undef WCHAR_TYPE