]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
elfos.h (SELECT_SECTION): Decide whether to use a data or const section to output...
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Wed, 12 Apr 2000 01:22:51 +0000 (01:22 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 12 Apr 2000 01:22:51 +0000 (01:22 +0000)
* 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

gcc/ChangeLog
gcc/config/elfos.h

index 26253bf87b0042dd69250e3d9e468e36ada285f4..76e79af451a6fba9c603ab67fe6d698146584c1c 100644 (file)
@@ -1,3 +1,9 @@
+2000-04-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * 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  <m.hayes@elec.canterbury.ac.nz>
index 6c107311fd75d5d75664c78c9e5968702008d37d..d48261591981f8397f3621e3a9cee4f66d6a9adc 100644 (file)
@@ -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)          \