rs6000.c (rs6000_select_section): Handle CONSTRUCTORs too.

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

From-SVN: r46792
This commit is contained in:
Geoffrey Keating 2001-11-05 21:04:07 +00:00 committed by Geoffrey Keating
parent e529bd42ef
commit ac4f7ad92f
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-11-05 Geoffrey Keating <geoffk@redhat.com>
* config/rs6000/rs6000.c (rs6000_select_section): Handle
CONSTRUCTORs too.
2001-11-05 Nick Clifton <nickc@cambridge.redhat.com>
* config/arm/arm.c (arm_return_in_memory): Cope with

View File

@ -8311,6 +8311,11 @@ rs6000_select_section (decl, reloc)
&& DECL_INITIAL (decl)
&& DECL_INITIAL (decl) != error_mark_node
&& 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)));
else
readonly = 1;
if (needs_sdata && rs6000_sdata != SDATA_EABI)