aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@redhat.com>2001-07-13 21:55:10 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2001-07-13 21:55:10 +0000
commitca18be5753c50df8016ee9b2e40b556ef09b91f5 (patch)
treeb3175fa1163f9922285e7adecc02e9fcb5ca5bfa /gcc
parent48fe3de0c349df07154ae21fe8679f4fbf75cfb2 (diff)
downloadgcc-ca18be5753c50df8016ee9b2e40b556ef09b91f5.zip
gcc-ca18be5753c50df8016ee9b2e40b556ef09b91f5.tar.gz
gcc-ca18be5753c50df8016ee9b2e40b556ef09b91f5.tar.bz2
Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
From-SVN: r43998
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/elfos.h13
2 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5fa7552..be99365 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h
index 1f556f0..f3abe46 100644
--- a/gcc/config/elfos.h
+++ b/gcc/config/elfos.h
@@ -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 \