Commit ca18be57 by Geoffrey Keating Committed by Geoffrey Keating

Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.

From-SVN: r43998
parent 48fe3de0
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> 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
* c-common.c (decl_attributes): Take a pointer to the node to * c-common.c (decl_attributes): Take a pointer to the node to
......
...@@ -348,19 +348,22 @@ dtors_section () \ ...@@ -348,19 +348,22 @@ dtors_section () \
const char *name; \ const char *name; \
char *string; \ char *string; \
const char *prefix; \ const char *prefix; \
static const char *prefixes[4][2] = \ static const char *prefixes[/*4*/3][2] = \
{ \ { \
{ ".text.", ".gnu.linkonce.t." }, \ { ".text.", ".gnu.linkonce.t." }, \
{ ".rodata.", ".gnu.linkonce.r." }, \ { ".rodata.", ".gnu.linkonce.r." }, \
{ ".data.", ".gnu.linkonce.d." }, \ { ".data.", ".gnu.linkonce.d." } \
{ ".bss.", ".gnu.linkonce.b." } \ /* 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) \ if (TREE_CODE (DECL) == FUNCTION_DECL) \
sec = 0; \ sec = 0; \
else if (DECL_INITIAL (DECL) == 0 \ /* else if (DECL_INITIAL (DECL) == 0 \
|| DECL_INITIAL (DECL) == error_mark_node) \ || DECL_INITIAL (DECL) == error_mark_node) \
sec = 3 \ sec = 3; */ \
else if (DECL_READONLY_SECTION (DECL, RELOC)) \ else if (DECL_READONLY_SECTION (DECL, RELOC)) \
sec = 1; \ sec = 1; \
else \ else \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment