sol2.h: Set SUPPORTS_INIT_PRIORITY to 0.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 17 Dec 2003 12:01:47 +0000 (13:01 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 17 Dec 2003 12:01:47 +0000 (12:01 +0000)
* config/sparc/sol2.h: Set SUPPORTS_INIT_PRIORITY to 0.
* config/sparc/sol2-gld.h: Set SUPPORTS_INIT_PRIORITY to 1.

From-SVN: r74740

gcc/ChangeLog
gcc/config/sparc/sol2-gld.h
gcc/config/sparc/sol2.h

index c69d1c8f3682f96bf59eefbbe6c82a40c389ba2c..4a135d25f8e5f17fcda9fbb31fde97cbf13f70b7 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * config/sparc/sol2.h: Set SUPPORTS_INIT_PRIORITY to 0.
+       * config/sparc/sol2-gld.h: Set SUPPORTS_INIT_PRIORITY to 1.
+
 2003-12-17  Richard Earnshaw  <rearnsha@arm.com>
 
        * arm.c (thumb_base_register_rtx_p): Don't allow virtual registers
index aed94e5c475c542578f72043c0f041a39fa87b91..eb422cb8667b4d18e4e9f5b6e9e07d8a184ba059 100644 (file)
@@ -4,3 +4,6 @@
 /* Undefine this so that attribute((init_priority)) works.  */
 #undef CTORS_SECTION_ASM_OP
 #undef DTORS_SECTION_ASM_OP
+
+#undef SUPPORTS_INIT_PRIORITY
+#define SUPPORTS_INIT_PRIORITY 1
index 47204f4710e64d3afc6970f0971ccd53f5fe4539..53c364daade269fdf68f9f9b1c5bf2fc61154a06 100644 (file)
@@ -98,6 +98,10 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL)              \
   ((flag_pic || GLOBAL) ? DW_EH_PE_aligned : DW_EH_PE_absptr)
 #endif
+
+/* The Solaris linker doesn't understand constructor priorities.  */
+#undef SUPPORTS_INIT_PRIORITY
+#define SUPPORTS_INIT_PRIORITY 0
 \f
 /* ??? This does not work in SunOS 4.x, so it is not enabled in sparc.h.
    Instead, it is enabled here, because it does work under Solaris.  */