[L_ctors] (__CTOR_LIST__, __DTOR_LIST__):
authorRichard Stallman <rms@gnu.org>
Thu, 15 Oct 1992 08:25:16 +0000 (08:25 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 15 Oct 1992 08:25:16 +0000 (08:25 +0000)
Initialize these default definitions if __NeXT__.

From-SVN: r2472

gcc/libgcc2.c

index ee92530e0bb41d1f7b129647b77e43e8c50d17d5..e4aa084a3f36391ef0d53caabbf6a302f8907155 100644 (file)
@@ -1601,8 +1601,14 @@ __main ()
 /* We declare the lists here with two elements each,
    so that they are valid empty lists if no other definition is loaded.  */
 #if !defined(INIT_SECTION_ASM_OP) && !defined(CTOR_LISTS_DEFINED_EXTERNALLY)
+#ifdef __NeXT__
+/* After 2.3, try this definition on all systems.  */
+func_ptr __CTOR_LIST__[2] = {0, 0};
+func_ptr __DTOR_LIST__[2] = {0, 0};
+#else
 func_ptr __CTOR_LIST__[2];
 func_ptr __DTOR_LIST__[2];
+#endif
 #endif /* no INIT_SECTION_ASM_OP and not CTOR_LISTS_DEFINED_EXTERNALLY */
 #endif /* L_ctors */
 \f