elfos.h (UNIQUE_SECTION): Enable .bss section.
authorH.J. Lu <hjl@gnu.org>
Fri, 13 Jul 2001 18:28:10 +0000 (18:28 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 13 Jul 2001 18:28:10 +0000 (11:28 -0700)
2001-07-13  H.J. Lu  (hjl@gnu.org)

* config/elfos.h (UNIQUE_SECTION): Enable .bss section.

From-SVN: r43989

gcc/ChangeLog
gcc/config/elfos.h

index 7c5ec9c4b2e61744ae91dcbe0f277d36a3e5ca54..242c4916a2456be953703e47fd3222c4a8ee81dc 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-13  H.J. Lu  (hjl@gnu.org)
+
+       * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
+
 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
 
        * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
index f3abe469b8105b366bbeb4ce5e65985408192f4d..1f556f05fc093e13e5889f212bbd19e1b02cb66e 100644 (file)
@@ -348,22 +348,19 @@ dtors_section ()                                          \
       const char *name;                                                \
       char *string;                                            \
       const char *prefix;                                      \
-      static const char *prefixes[/*4*/3][2] =                 \
+      static const char *prefixes[4][2] =                      \
       {                                                                \
        { ".text.",   ".gnu.linkonce.t." },                     \
        { ".rodata.", ".gnu.linkonce.r." },                     \
-       { ".data.",   ".gnu.linkonce.d." }                      \
-       /* Do not generate unique sections for uninitialised    \
-          data since we do not have support for this in the    \
-          linker scripts yet...                                \
-        ,{ ".bss.",    ".gnu.linkonce.b." }  */                        \
+       { ".data.",   ".gnu.linkonce.d." },                     \
+        { ".bss.",    ".gnu.linkonce.b." }                     \
       };                                                       \
                                                                \
       if (TREE_CODE (DECL) == FUNCTION_DECL)                   \
        sec = 0;                                                \
-  /*  else if (DECL_INITIAL (DECL) == 0                                \
+      else if (DECL_INITIAL (DECL) == 0                                \
               || DECL_INITIAL (DECL) == error_mark_node)       \
-        sec =  3; */                                           \
+        sec =  3                                               \
       else if (DECL_READONLY_SECTION (DECL, RELOC))            \
        sec = 1;                                                \
       else                                                     \