This is the breakage of the init_priority attribute on sparc-elf, a regression
from older releases in the 4.x series.
Tested on sparc-elf, applied on all active branches.
2015-11-19 Eric Botcazou <ebotca...@adacore.com>
PR target/68408
* config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
(DTORS_SECTION_ASM_OP): Likewise.
--
Eric Botcazou
Index: config/sparc/sp-elf.h
===================================================================
--- config/sparc/sp-elf.h (revision 230589)
+++ config/sparc/sp-elf.h (working copy)
@@ -53,6 +53,10 @@ along with GCC; see the file COPYING3.
#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