------- Comment #6 from alexandre dot nunes at gmail dot com  2009-04-14 20:11 
-------
(In reply to comment #5)
> See the attached pqp.c file.
> 
> [cut]
> 
> With gcc 4.4.0 branch, built on 20090413, it fails:
> 

This seems to be caused by the register order allocation. If I replace the
source code lines to operate in the reverse order:

 hehe.y += pqp;
 hehe.x += pqp;

Then 4.4.0 20090413 generates optimized code:

  ldr     r3, .L3
        ldmia   r3, {r1, r2}    @ phole ldm
        add     r2, r0, r2
        add     r1, r0, r1
        stmia   r3, {r1, r2}    @ phole stm
        bx      lr

While gcc 4.3.3 does not :-) Funny thing isn't it?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9831

Reply via email to