DJ Delorie writes:
>> Does it help if we change
>> if (pic_offset_table_rtx)
>> to
>> if (PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM)
>
> That seems to work.
That patch is fine if it bootstraps.
Ian
On Fri, Nov 4, 2011 at 6:01 PM, DJ Delorie wrote:
>
>> > if (pic_offset_table_rtx)
>> > add_to_hard_reg_set (&set_up_by_prologue, Pmode,
>> > PIC_OFFSET_TABLE_REGNUM);
>>
>> But if PIC_OFFSET_TABLE_REGNUM == INVALID_REGNUM, then
>> pic_offset_table_rtx should be NULL
> Does it help if we change
> if (pic_offset_table_rtx)
> to
> if (PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM)
That seems to work.
DJ Delorie writes:
>> > if (pic_offset_table_rtx)
>> >add_to_hard_reg_set (&set_up_by_prologue, Pmode,
>> > PIC_OFFSET_TABLE_REGNUM);
>>
>> But if PIC_OFFSET_TABLE_REGNUM == INVALID_REGNUM, then
>> pic_offset_table_rtx should be NULL_RTX.
>
> It is, but is gcc smart
> > if (pic_offset_table_rtx)
> > add_to_hard_reg_set (&set_up_by_prologue, Pmode,
> > PIC_OFFSET_TABLE_REGNUM);
>
> But if PIC_OFFSET_TABLE_REGNUM == INVALID_REGNUM, then
> pic_offset_table_rtx should be NULL_RTX.
It is, but is gcc smart enough to know that causal
DJ Delorie writes:
> gcc/function.c: In function 'thread_prologue_and_epilogue_insns':
> gcc/regs.h:322:34: error: array subscript is above array bounds
> [-Werror=array-bounds]
>
> function.c has this:
>
> if (pic_offset_table_rtx)
> add_to_hard_reg_set (&set_up_by_prologue, Pmode,
For example, rx-elf...
gcc/function.c: In function 'thread_prologue_and_epilogue_insns':
gcc/regs.h:322:34: error: array subscript is above array bounds
[-Werror=array-bounds]
function.c has this:
if (pic_offset_table_rtx)
add_to_hard_reg_set (&set_up_by_prologue, Pmode,