--- gcc/config/svr3.h 2018/04/24 18:05:42 1.1.1.4 +++ gcc/config/svr3.h 2018/04/24 18:27:32 1.1.1.6 @@ -2,7 +2,7 @@ targeting GCC for some generic System V Release 3 system. Copyright (C) 1991 Free Software Foundation, Inc. - Written by Ron Guilmette (rfg@ncd.com). + Written by Ron Guilmette (rfg@netcom.com). This file is part of GNU CC. @@ -18,7 +18,8 @@ GNU General Public License for more deta You should have received a copy of the GNU General Public License along with GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. To use this file, make up a file with a name like: @@ -150,7 +151,7 @@ the Free Software Foundation, 675 Mass A #define WCHAR_TYPE_SIZE BITS_PER_WORD /* Assembler pseudos to introduce constants of various size. These - definitions hsould work for most svr3 systems. */ + definitions should work for most svr3 systems. */ #undef ASM_BYTE_OP #define ASM_BYTE_OP "\t.byte" @@ -221,7 +222,7 @@ the Free Software Foundation, 675 Mass A /* CTOR_LIST_BEGIN and CTOR_LIST_END are machine-dependent because they push on the stack. */ -#ifdef STACK_GROWS_DOWNWARD +#ifndef STACK_GROWS_DOWNWARD /* Constructor list on stack is in reverse order. Go to the end of the list and go backwards to call constructors in the right order. */ @@ -363,7 +364,10 @@ dtors_section () \ else if (TREE_CODE (DECL) == VAR_DECL) \ { \ if ((0 && RELOC) /* should be (flag_pic && RELOC) */ \ - || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL)) \ + || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \ + || !DECL_INITIAL (DECL) \ + || (DECL_INITIAL (DECL) != error_mark_node \ + && !TREE_CONSTANT (DECL_INITIAL (DECL)))) \ data_section (); \ else \ const_section (); \