------- Comment #1 from ramana dot r at gmail dot com  2009-02-04 23:38 -------
4.4.0 with revision id 143499 generates the following code with -O3 , -O2 and
-Os . The same code is generated for 4.3.3 as well 

        sub     sp, sp, #8
        mov     r3, sp
        mov     r2, #0
        stmia   r3, {r0, r1}
        str     r2, [r0, #0]
        add     sp, sp, #8
        bx      lr




Clearly things have gotten worse with an extra stmia being generated in this
case where the argument registers are being saved on the stack with the stmia
instruction. 


-- 

ramana dot r at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rearnsha at arm dot com


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

Reply via email to