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:
Richard Henderson 2002-03-21 10:30:09 -08:00 committed by Richard Henderson
parent e05af3357e
commit 5b19b10c6b
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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 ();
}