Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
authorGeoffrey Keating <geoffk@redhat.com>
Fri, 13 Jul 2001 21:55:10 +0000 (21:55 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 13 Jul 2001 21:55:10 +0000 (21:55 +0000)
From-SVN: r43998

gcc/ChangeLog
gcc/config/elfos.h

index 5fa755290bf55daa721eef0fbd63c9f82e54f7b2..be9936567d7351129663575def9060118819d134 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
+
+       Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
+
 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * c-common.c (decl_attributes): Take a pointer to the node to
index 1f556f05fc093e13e5889f212bbd19e1b02cb66e..f3abe469b8105b366bbeb4ce5e65985408192f4d 100644 (file)
@@ -348,19 +348,22 @@ dtors_section ()                                          \
       const char *name;                                                \
       char *string;                                            \
       const char *prefix;                                      \
-      static const char *prefixes[4][2] =                      \
+      static const char *prefixes[/*4*/3][2] =                 \
       {                                                                \
        { ".text.",   ".gnu.linkonce.t." },                     \
        { ".rodata.", ".gnu.linkonce.r." },                     \
-       { ".data.",   ".gnu.linkonce.d." },                     \
-        { ".bss.",    ".gnu.linkonce.b." }                     \
+       { ".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." }  */                        \
       };                                                       \
                                                                \
       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                                                     \