mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 19:05:44 +08:00
rs6000.c (rs6000_select_rtx_section): Put symbolic constants in .data when -fpic.
* config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic constants in .data when -fpic. From-SVN: r51134
This commit is contained in:
parent
e05af3357e
commit
5b19b10c6b
@ -1,3 +1,8 @@
|
||||
2002-03-21 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
|
||||
constants in .data when -fpic.
|
||||
|
||||
2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
|
||||
|
||||
* doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
|
||||
|
@ -10787,6 +10787,11 @@ rs6000_select_rtx_section (mode, x)
|
||||
{
|
||||
if (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P (x, mode))
|
||||
toc_section ();
|
||||
else if (flag_pic
|
||||
&& (GET_CODE (x) == SYMBOL_REF
|
||||
|| GET_CODE (x) == LABEL_REF
|
||||
|| GET_CODE (x) == CONST))
|
||||
data_section ();
|
||||
else
|
||||
const_section ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user