diff options
author | Jim Blandy <jimb@zwingli.cygnus.com> | 1999-03-24 00:51:16 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-03-23 17:51:16 -0700 |
commit | 7ad3a049d39ae396220cbd7350ee753054d22afb (patch) | |
tree | 804e041042ad6c1528317f7bba687bb703f78c59 /gcc | |
parent | f4dbd6e4f77f328007b659b5587a0532f1289bb3 (diff) | |
download | gcc-7ad3a049d39ae396220cbd7350ee753054d22afb.zip gcc-7ad3a049d39ae396220cbd7350ee753054d22afb.tar.gz gcc-7ad3a049d39ae396220cbd7350ee753054d22afb.tar.bz2 |
libgcc2.c (__CTOR_LIST__, [...]): Initialize on all platforms.
* libgcc2.c (__CTOR_LIST__, __DTOR_LIST__): Initialize on all
platforms.
From-SVN: r25939
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/libgcc2.c | 14 |
2 files changed, 10 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d05eba8..65325b9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1999-03-24 Jim Blandy <jimb@zwingli.cygnus.com> + + * libgcc2.c (__CTOR_LIST__, __DTOR_LIST__): Initialize on all + platforms. + Wed Mar 24 01:35:01 1999 Geoff Keating <geoffk@ozemail.com.au> * fold-const.c (fold): Recognise a rotate by an unsigned amount. diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index a59fd2f..53dfdbf4f 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -2903,21 +2903,17 @@ SYMBOL__MAIN () #include "gbl-ctors.h" /* Provide default definitions for the lists of constructors and - destructors, so that we don't get linker errors. These symbols are - intentionally bss symbols, so that gld and/or collect will provide - the right values. */ + destructors, so that we don't get linker errors. + + The old code sometimes put these into the data segment and sometimes + into the bss segment. Putting these into the data segment should always + work and avoids a little bit of complexity. */ /* 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) -#if defined(__NeXT__) || defined(_AIX) -/* 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 */ |