On Sat, Dec 8, 2012 at 2:14 AM, Richard Sandiford
<rdsandif...@googlemail.com> wrote:
>
> As far as the dwarf2out.c bits go, I think the original dbx_reg_number assert:
>
>   gcc_assert (regno != INVALID_REGNUM);
>
> should become:
>
>   gcc_assert (regno != INVALID_REGNUM && regno != IGNORED_DWARF_REGNUM);
>
> since it's the caller's job to handle this case.
>

I don't think if it will work since dbx_reg_number is called
to get debug register number and the register is ignored
if its return value is IGNORED_DWARF_REGNUM.

On the other hand, we should cache the return value of
dbx_reg_number(rtl), instead of calling it twice.

-- 
H.J.

Reply via email to