--enable-werror-always fails function.o for any non-pic target

Ian Lance Taylor iant@google.com
Sat Nov 5 01:14:00 GMT 2011


DJ Delorie <dj@redhat.com> 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 enough to know that causal relationship?

Oh, I see what you mean, sorry.

Does it help if we change
    if (pic_offset_table_rtx)
to
    if (PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM)
?

Ian



More information about the Gcc mailing list