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:
parent
e529bd42ef
commit
ac4f7ad92f
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user