public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [SPARC] Fix PR target/68408
@ 2015-11-19 11:51 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2015-11-19 11:51 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

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  <ebotcazou@adacore.com>

	PR target/68408
	* config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
	(DTORS_SECTION_ASM_OP): Likewise.

-- 
Eric Botcazou

[-- Attachment #2: pr68408.diff --]
[-- Type: text/x-patch, Size: 605 bytes --]

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
 \f
 /* ??? Inherited from sol2.h.  Probably wrong.  */
 #undef WCHAR_TYPE

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-19 11:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-19 11:51 [SPARC] Fix PR target/68408 Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).