This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Legitimize address after reload
- From: David Guillen <david at davidgf dot net>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 19 Mar 2014 23:43:51 +0100
- Subject: Re: Legitimize address after reload
- Authentication-results: sourceware.org; auth=none
- References: <CADQAGROrLu5_gRPACTvSEvACuWNK0+4v_By-qkhUO2UFCZvzQA at mail dot gmail dot com> <87a9cngwzc dot fsf at talisman dot default> <87wqfrfhgk dot fsf at talisman dot default>
Yep thanks,
As you guys pointed the problem was the improper handling of the
strict_p parameter.
Thanks!
2014-03-18 20:13 GMT+01:00 Richard Sandiford <rdsandiford@googlemail.com>:
> Richard Sandiford <rdsandiford@googlemail.com> writes:
>> What DJ meant below was that you should reject all pseudo registers
>> if strict_p. I.e. REG_P (foo) should be:
>>
>> REG_P (foo) && (!strict_p || REGNO_MODE_OK_FOR_BASE_P (foo, mode))
>
> sorry:
>
> REG_P (foo) && (!strict_p || REGNO_MODE_OK_FOR_BASE_P (REGNO (foo), mode))
>
>> where REGNO_MODE_OK_FOR_BASE_P should only accept hard registers and
>> where "mode" is the mode of the memory being accessed.
>>
>> Thanks,
>> Richard