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

From-SVN: r230598

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

index 5eb064668952422c956d49513e21f841af2abc47..558b789ba53d00fb0bae1aef48706ca89deb0067 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-19  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/68376
index 371bb6a767db384a7b79e99eb8f5e397ababad23..932e443420bc0c11ad05e2ed6e52f1420541b118 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