rs6000.c (rs6000_select_section): Handle CONSTRUCTORs _correctly_.
authorGeoffrey Keating <geoffk@redhat.com>
Tue, 6 Nov 2001 00:21:34 +0000 (00:21 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Tue, 6 Nov 2001 00:21:34 +0000 (00:21 +0000)
* config/rs6000/rs6000.c (rs6000_select_section): Handle
CONSTRUCTORs _correctly_.

From-SVN: r46798

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

index 798055d13f24461255d95e612508e2c16b296da3..0366ffb0e3ec26bc2e3c1b7068757a6751e84249 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 6be9db72a9595395072313313749bd3d622567dc..3c7b2c0a37011bb9478dfda13816822187575fb3 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)