pa.c (hppa_profile_hook): Use force_reg to get the address of the profile hook into an appropriate pseudo...

* pa.c (hppa_profile_hook): Use force_reg to get the address
	of the profile hook into an appropriate pseudo register.

From-SVN: r53260
This commit is contained in:
Jeff Law 2002-05-07 11:03:37 -06:00 committed by Jeff Law
parent 18aed4ab20
commit bdad4be519
2 changed files with 6 additions and 18 deletions

View File

@ -1,3 +1,8 @@
Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
* pa.c (hppa_profile_hook): Use force_reg to get the address
of the profile hook into an appropriate pseudo register.
2002-05-07 Mark Mitchell <mark@codesourcery.com>
* config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.

View File

@ -3729,24 +3729,7 @@ hppa_profile_hook (label_no)
ASM_GENERATE_INTERNAL_LABEL (count_label_name, "LP", label_no);
count_label_rtx = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (count_label_name));
if (flag_pic)
{
rtx tmpreg;
current_function_uses_pic_offset_table = 1;
tmpreg = gen_rtx_REG (Pmode, 1);
emit_move_insn (tmpreg,
gen_rtx_PLUS (Pmode, pic_offset_table_rtx,
gen_rtx_HIGH (Pmode, count_label_rtx)));
addr = gen_rtx_MEM (Pmode,
gen_rtx_LO_SUM (Pmode, tmpreg, count_label_rtx));
}
else
{
rtx tmpreg = gen_rtx_REG (Pmode, 1);
emit_move_insn (tmpreg, gen_rtx_HIGH (Pmode, count_label_rtx));
addr = gen_rtx_LO_SUM (Pmode, tmpreg, count_label_rtx);
}
addr = force_reg (Pmode, count_label_rtx);
r24 = gen_rtx_REG (Pmode, 24);
emit_move_insn (r24, addr);