reload problem:

dimmy diwil@mail.ru
Tue Jan 22 10:20:00 GMT 2002


Well, for the code given

int *a, b;

void foo()
{
    b -= *a;
}

I'll get:

    mov &a, r12
    sub @r12, &b    <-- this is _2 pattern. zero_shifted() and 
indexed_location() both true.

the code will be exactly the same with no to highest optimization option.

Anyway, thanks.
It works now.

cheers,
Dmitry.



Alexandre Oliva wrote:

>On Jan 22, 2002, dimmy <diwil@mail.ru> wrote:
>
>>I was just wondering why these difinition do not work when no
>>optimization used.
>>
>
>Probably because the optimizers sufficiently modify the instruction
>stream that you wouldn't get the _2 pattern for this case.
>





More information about the Gcc mailing list