diff options
author | Richard Stallman <rms@gnu.org> | 1992-10-15 08:25:16 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-10-15 08:25:16 +0000 |
commit | d15d0264a9edd630fc9500f027864309d9c2141e (patch) | |
tree | 12f06b8aa3281b21fb161f3fcf323d93aa39f96c /gcc | |
parent | 07a3713d5d66aac1628dfdc03f24c28d1a008574 (diff) | |
download | gcc-d15d0264a9edd630fc9500f027864309d9c2141e.zip gcc-d15d0264a9edd630fc9500f027864309d9c2141e.tar.gz gcc-d15d0264a9edd630fc9500f027864309d9c2141e.tar.bz2 |
[L_ctors] (__CTOR_LIST__, __DTOR_LIST__):
Initialize these default definitions if __NeXT__.
From-SVN: r2472
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/libgcc2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index ee92530..e4aa084 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 */ |