summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-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 665e70622ba..35e514806d7 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 e6b36a703d0..a5c7a710e31 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 \
OpenPOWER on IntegriCloud