From: Alexandre Oliva Date: Wed, 12 Apr 2000 01:22:51 +0000 (+0000) Subject: elfos.h (SELECT_SECTION): Decide whether to use a data or const section to output... X-Git-Tag: prereleases/gcc-2.95.3-test1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8487eac9d14c7bf465a1874b15143d3e7f0fd1e1;p=thirdparty%2Fgcc.git elfos.h (SELECT_SECTION): Decide whether to use a data or const section to output a CONSTRUCTOR based on... * config/elfos.h (SELECT_SECTION): Decide whether to use a data or const section to output a CONSTRUCTOR based on the same conditions used for VAR_DECLs. From-SVN: r33087 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 26253bf87b00..76e79af451a6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-04-11 Alexandre Oliva + + * config/elfos.h (SELECT_SECTION): Decide whether to use a data or + const section to output a CONSTRUCTOR based on the same conditions + used for VAR_DECLs. + Mon Apr 3 02:31:32 2000 Jeffrey A Law (law@cygnus.com) 2000-01-20 Michael Hayes diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index 6c107311fd75..d48261591981 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -1,6 +1,6 @@ /* elfos.h -- operating system specific defines to be used when targeting GCC for some generic ELF system - Copyright (C) 1991, 1994, 1995, 1999 Free Software Foundation, Inc. + Copyright (C) 1991, 1994, 1995, 1999, 2000 Free Software Foundation, Inc. Based on svr4.h contributed by Ron Guilmette (rfg@netcom.com). This file is part of GNU CC. @@ -426,7 +426,8 @@ do { \ else \ data_section (); \ } \ - else if (TREE_CODE (DECL) == VAR_DECL) \ + else if (TREE_CODE (DECL) == VAR_DECL \ + || TREE_CODE (DECL) == CONSTRUCTOR) \ { \ if ((flag_pic && RELOC) \ || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \