aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>2000-04-12 00:29:43 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-04-12 00:29:43 +0000
commit85b0830b83dbdc54e7ed1a581bd3e08bb0a851f3 (patch)
tree9701acccc3b8c6b327da841a511597abdca28d4e /gcc
parentdb9b217498015006694d428ada8d8aed292a432f (diff)
downloadgcc-85b0830b83dbdc54e7ed1a581bd3e08bb0a851f3.zip
gcc-85b0830b83dbdc54e7ed1a581bd3e08bb0a851f3.tar.gz
gcc-85b0830b83dbdc54e7ed1a581bd3e08bb0a851f3.tar.bz2
elfos.h (SELECT_SECTION): Decide whether to use a data or const section to output a CONSTRUCTOR based on...
* 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. From-SVN: r33085
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/elfos.h3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2cacd99..91bc64e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2000-04-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
+
+ * 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.
+
Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
* pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h
index 91c3677..ebee43a 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) \