On 11 February 2011 15:28, Paulo J. Matos <pocma...@gmail.com> wrote:
>
>
> On 11/02/11 09:46, Mohamed Shafi wrote:
>>
>> How can i overcome this failure?  Can some one suggest a solution?
>>
>
>
> Have you defined TARGET_LEGITIMATE_ADDRESS_P and also BASE_REG_CLASS
> correctly for your target?
>
>

Yes, I have. Register allocator is allocating the wrong registers for
the base registers. This probably is due to the fact that address
registers cannot be saved and restored directly, a secondary reload is
required. There is also the restriction that there is no move
operation between the address registers. For that also a secondary
reload is required. (I know its weird). I am trying to figure out why
register allocator is not assigning a base register. But even then,
reload could be asked to reload a auto-increment addresses.

Shafi

Reply via email to