* config/rs6000/rs6000.c (rs6000_select_section): Handle
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Nov 2001 00:21:34 +0000 (00:21 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Nov 2001 00:21:34 +0000 (00:21 +0000)
CONSTRUCTORs _correctly_.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46798 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 798055d..0366ffb 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
+
+       * config/rs6000/rs6000.c (rs6000_select_section): Handle
+       CONSTRUCTORs _correctly_.
+
 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
 
        * c-decl.c (delete_block): Remove.
index 6be9db7..3c7b2c0 100644 (file)
@@ -8313,9 +8313,8 @@ rs6000_select_section (decl, reloc)
                && TREE_CONSTANT (DECL_INITIAL (decl)));
   else if (TREE_CODE (decl) == CONSTRUCTOR)
     readonly = (! (flag_pic && reloc)
-               && TREE_READONLY (decl)
                && ! TREE_SIDE_EFFECTS (decl)
-               && TREE_CONSTANT (DECL_INITIAL (decl)));
+               && TREE_CONSTANT (decl));
   else
     readonly = 1;
   if (needs_sdata && rs6000_sdata != SDATA_EABI)