aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-11-26 14:16:56 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-11-26 14:16:56 -0800
commitc70ebb687c8bf3e98c88bf0b07447248d4afae71 (patch)
tree5b02599884dbf0f671195084adc0a4b2fe252cd2
parentfa9b5c6be7d76d589878994f6affb15b73739dda (diff)
downloadgcc-c70ebb687c8bf3e98c88bf0b07447248d4afae71.zip
gcc-c70ebb687c8bf3e98c88bf0b07447248d4afae71.tar.gz
gcc-c70ebb687c8bf3e98c88bf0b07447248d4afae71.tar.bz2
elfos.h (SELECT_SECTION): Don't check TREE_READONLY for CONSTRUCTOR.
* config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY for CONSTRUCTOR. From-SVN: r47357
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/elfos.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 665e706..35e5148 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-26 Richard Henderson <rth@redhat.com>
+
+ * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
+ for CONSTRUCTOR.
+
2001-11-26 David Edelsohn <edelsohn@gnu.org>
* rs6000.c (output_mi_thunk): Handle minimal-toc and call
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h
index e6b36a7..a5c7a71 100644
--- a/gcc/config/elfos.h
+++ b/gcc/config/elfos.h
@@ -387,7 +387,7 @@ const_section () \
else if (TREE_CODE (DECL) == CONSTRUCTOR) \
{ \
if ((flag_pic && RELOC) \
- || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \
+ || TREE_SIDE_EFFECTS (DECL) \
|| ! TREE_CONSTANT (DECL)) \
data_section (); \
else \