This is the mail archive of the gcc@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: --enable-werror-always fails function.o for any non-pic target


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


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