This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]