PPC -fpic bug introduced recently
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Sun Oct 31 23:03:00 GMT 1999
Am Mit, 06 Okt 1999 schrieb Geoff Keating:
>I'm not sure if you're supposed to have registers which are fixed and
>yet call-saved. On the other hand, it clearly makes sense to do so.
>
>Otherwise, we'd change the test to read
>
> /* Find lowest numbered live register. */
> for (first_reg = 13; first_reg <= 31; first_reg++)
> if (regs_ever_live[first_reg]
> && (! call_used_regs[first_reg]
> || ((DEFAULT_ABI == ABI_V4 || DEFAULT_ABI == ABI_SOLARIS)
> && flag_pic == 1
> && first_reg == PIC_OFFSET_TABLE_REGNUM)))
> break;
>
>perhaps with the test encapsulated in some macro so we can share it
>between this and CONDITIONAL_REGISTER_USE.
This works fine for me. This stuff reminded me I have to look at converting
PIC_OFFSET_TABLE_REGNUM to an expression dynamically selecting a register
sometime soon again.
Franz.
More information about the Gcc-bugs
mailing list