diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-12 00:29:43 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-12 00:29:43 +0000 |
commit | e996c0eebbae0627b32e813b45feda4aa29f0d7b (patch) | |
tree | 9701acccc3b8c6b327da841a511597abdca28d4e /gcc/config/elfos.h | |
parent | e55cba4c7bdc935998346875a70201f3b40cc260 (diff) | |
download | gcc-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.h | 3 |
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) \ |