Commit ac4f7ad9 by Geoffrey Keating Committed by Geoffrey Keating

rs6000.c (rs6000_select_section): Handle CONSTRUCTORs too.

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

From-SVN: r46792
parent e529bd42
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment