rs6000.c (rs6000_select_section): Handle CONSTRUCTORs _correctly_.

* config/rs6000/rs6000.c (rs6000_select_section): Handle
	CONSTRUCTORs _correctly_.

From-SVN: r46798
This commit is contained in:
Geoffrey Keating 2001-11-06 00:21:34 +00:00 committed by Geoffrey Keating
parent eb6e2e5bef
commit f3afc192ae
2 changed files with 6 additions and 2 deletions

View 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.

View 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)