summaryrefslogtreecommitdiff
path: root/gcc/config/elfos.h
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-12 00:29:43 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-12 00:29:43 +0000
commite996c0eebbae0627b32e813b45feda4aa29f0d7b (patch)
tree9701acccc3b8c6b327da841a511597abdca28d4e /gcc/config/elfos.h
parente55cba4c7bdc935998346875a70201f3b40cc260 (diff)
downloadgcc-e996c0eebbae0627b32e813b45feda4aa29f0d7b.tar.gz
* config/elfos.h (SELECT_SECTION): Decide whether to use a data or
const section to output a CONSTRUCTOR based on the same conditions used for VAR_DECLs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33085 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/elfos.h')
-rw-r--r--gcc/config/elfos.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h
index 91c36775421..ebee43a55ae 100644
--- a/gcc/config/elfos.h
+++ b/gcc/config/elfos.h
@@ -484,7 +484,8 @@ dtors_section () \
else \
data_section (); \
} \
- else if (TREE_CODE (DECL) == VAR_DECL) \
+ else if (TREE_CODE (DECL) == VAR_DECL \
+ || TREE_CODE (DECL) == CONSTRUCTOR) \
{ \
if ((flag_pic && RELOC) \
|| !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \