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 00:29:43 +0000 (00:29 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 12 Apr 2000 00:29:43 +0000 (00:29 +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: r33085

gcc/ChangeLog
gcc/config/elfos.h

index 2cacd99..91bc64e 100644 (file)
@@ -1,3 +1,9 @@
+2000-04-10  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.
+
 Tue Apr 11 09:55:59 2000  Jeffrey A Law  (law@cygnus.com)
 
        * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
index 91c3677..ebee43a 100644 (file)
@@ -484,7 +484,8 @@ dtors_section ()                                            \
       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)  \