]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/68408 (broken support for attribute init_priority)
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 19 Nov 2015 11:51:20 +0000 (11:51 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 19 Nov 2015 11:51:20 +0000 (11:51 +0000)
PR target/68408
* config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
(DTORS_SECTION_ASM_OP): Likewise.

From-SVN: r230600

gcc/ChangeLog
gcc/config/sparc/sp-elf.h

index 4df00bfe1a0bdc44e0d6ed9572db3631763322a0..13fc083771960d82608b1f83acbcae86e87c3b93 100644 (file)
@@ -1,3 +1,9 @@
+2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR target/68408
+       * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
+       (DTORS_SECTION_ASM_OP): Likewise.
+
 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR target/67265
index 28366e64f36195a6f3d28d30b54b49d17b2ae7ef..d9e3b77f3ec08367d618b83c14ccbc862301c634 100644 (file)
@@ -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
 \f
 /* ??? Inherited from sol2.h.  Probably wrong.  */
 #undef WCHAR_TYPE