This is the mail archive of the
mailing list for the GCC project.
Re: Fix for reload-failure
On Fri, Feb 07, 2003 at 04:15:34PM -0800, Geoff Keating wrote:
> This is what LEGITIMIZE_RELOAD_ADDRESS is for.
This shouldn't be required for correctness.
> It may be there's an easier-to-code way to handle the same situation.
> In ix86_save_reg, there's:
> if (pic_offset_table_rtx
> && regno == REAL_PIC_OFFSET_TABLE_REGNUM
> && (regs_ever_live[REAL_PIC_OFFSET_TABLE_REGNUM]
> || current_function_profile
> || current_function_calls_eh_return))
> Just add 'current_function_uses_const_pool' to the list. I can't
> guarantee that'll work for all cases, though.
Hmm, this does seem promising.