OSDN Git Service

2001-07-13 H.J. Lu (hjl@gnu.org)
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Jul 2001 23:33:37 +0000 (23:33 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Jul 2001 23:33:37 +0000 (23:33 +0000)
* config/elfos.h (UNIQUE_SECTION): Enable .bss section with
the correct patch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44001 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/elfos.h

index be99365..e68b7af 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-13  H.J. Lu  (hjl@gnu.org)
+
+       * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
+       the correct patch.
+
 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
 
        Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
index f3abe46..eef4115 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                                                     \