This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Inconsistent initialization for pic_offset_table_rtx?
- From: Ilya Enkovich <enkovich dot gnu at gmail dot com>
- To: "Bin.Cheng" <amker dot cheng at gmail dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 9 Feb 2016 18:43:00 +0300
- Subject: Re: Inconsistent initialization for pic_offset_table_rtx?
- Authentication-results: sourceware.org; auth=none
- References: <CAHFci28XosGqkHXjA1_=XU3f6M2anq4NTwCntY5adV+JKeD-Zw at mail dot gmail dot com> <CAMbmDYbN7DJJuXPhQ-8TpYh2Yj9bFcP1MyncNr9iaS9LX9L1+Q at mail dot gmail dot com> <CAHFci2-Qb1NadLD+CUEOSBcbqrc74cMaQV_=fatw9AB47dFakQ at mail dot gmail dot com> <CAMbmDYaeO1RCjZUV5EMC3Q2ip1r=Sggymd=8qqwRPpUGYvEB4w at mail dot gmail dot com> <CAHFci2992=9Y8qNiKskbyaS770zJng7tDoqDaGnCg69w=fXePw at mail dot gmail dot com> <CAMbmDYYX3UUCHsaOLyTyjRb=nt0Y6axF4XZedLVBPG2DBo7KAA at mail dot gmail dot com> <CAHFci2-VVDCF4S7sK0vHUL2Kc1mwajr-LejSAyNWHgBTsYTByg at mail dot gmail dot com>
2016-02-09 18:13 GMT+03:00 Bin.Cheng <amker.cheng@gmail.com>:
> On Tue, Feb 9, 2016 at 2:56 PM, Ilya Enkovich <enkovich.gnu@gmail.com> wrote:
>>
>> I agree it looks inconsistent. But I don't think PIC_OFFSET_TABLE_REGNUM is
>> supposed to return pseudo regno. Using EBX_REG value for this macro was a
>> workaround for problem of NULL pic_offset_table_rtx usage in cost
>> functions. I think
>> we should try to initialize pic_offset_table_rtx with some pseudo
>> register in i386
>> target for cost estimation purposes and always return INVALID_REG for
>> PIC_OFFSET_TABLE_REGNUM.
> Hi IIya,
> Could you please test a patch in this way? You are more experienced
> than me here.
Not now I'm afraid. It doesn't seem safe enough for stage4 anyway. So
let's get back to it on stage1.
Thanks,
Ilya
>
> Thanks,
> bin
>>