dwarf2out.c (dbx_reg_number): Do leaf register remapping only if the function is leaf.
* dwarf2out.c (dbx_reg_number): Do leaf register remapping only if the function is leaf. (multiple_reg_loc_descriptor): Likewise. From-SVN: r120170
This commit is contained in:
parent
3c1dd4a384
commit
ea049a4199
2 changed files with 18 additions and 14 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-12-23 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* dwarf2out.c (dbx_reg_number): Do leaf register remapping
|
||||
only if the function is leaf.
|
||||
(multiple_reg_loc_descriptor): Likewise.
|
||||
|
||||
2006-12-23 Kazu Hirata <kazu@codesourcery.com>
|
||||
|
||||
* rtl.h (NOTE_EXPECTED_VALUE): Remove.
|
||||
|
|
|
@ -8611,13 +8611,12 @@ dbx_reg_number (rtx rtl)
|
|||
gcc_assert (regno < FIRST_PSEUDO_REGISTER);
|
||||
|
||||
#ifdef LEAF_REG_REMAP
|
||||
{
|
||||
int leaf_reg;
|
||||
|
||||
leaf_reg = LEAF_REG_REMAP (regno);
|
||||
if (leaf_reg != -1)
|
||||
regno = (unsigned) leaf_reg;
|
||||
}
|
||||
if (current_function_uses_only_leaf_regs)
|
||||
{
|
||||
int leaf_reg = LEAF_REG_REMAP (regno);
|
||||
if (leaf_reg != -1)
|
||||
regno = (unsigned) leaf_reg;
|
||||
}
|
||||
#endif
|
||||
|
||||
return DBX_REGISTER_NUMBER (regno);
|
||||
|
@ -8686,13 +8685,12 @@ multiple_reg_loc_descriptor (rtx rtl, rtx regs)
|
|||
|
||||
reg = REGNO (rtl);
|
||||
#ifdef LEAF_REG_REMAP
|
||||
{
|
||||
int leaf_reg;
|
||||
|
||||
leaf_reg = LEAF_REG_REMAP (reg);
|
||||
if (leaf_reg != -1)
|
||||
reg = (unsigned) leaf_reg;
|
||||
}
|
||||
if (current_function_uses_only_leaf_regs)
|
||||
{
|
||||
int leaf_reg = LEAF_REG_REMAP (reg);
|
||||
if (leaf_reg != -1)
|
||||
reg = (unsigned) leaf_reg;
|
||||
}
|
||||
#endif
|
||||
gcc_assert ((unsigned) DBX_REGISTER_NUMBER (reg) == dbx_reg_number (rtl));
|
||||
nregs = hard_regno_nregs[REGNO (rtl)][GET_MODE (rtl)];
|
||||
|
|
Loading…
Add table
Reference in a new issue