From d15d0264a9edd630fc9500f027864309d9c2141e Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 15 Oct 1992 08:25:16 +0000 Subject: [PATCH] [L_ctors] (__CTOR_LIST__, __DTOR_LIST__): Initialize these default definitions if __NeXT__. From-SVN: r2472 --- gcc/libgcc2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index ee92530e0bb..e4aa084a3f3 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -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 */ -- 2.30.2