From: Eric Botcazou Date: Thu, 19 Nov 2015 11:51:20 +0000 (+0000) Subject: re PR target/68408 (broken support for attribute init_priority) X-Git-Tag: releases/gcc-4.9.4~502 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=326815c1b5fd19f74ab24526e7185fb56c9e3082;p=thirdparty%2Fgcc.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: r230600 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4df00bfe1a0b..13fc08377196 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-12 Eric Botcazou PR target/67265 diff --git a/gcc/config/sparc/sp-elf.h b/gcc/config/sparc/sp-elf.h index 28366e64f361..d9e3b77f3ec0 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