This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/24669] Loop index variable has offset of 1



------- Comment #7 from ubizjak at gmail dot com  2007-08-28 10:04 -------
This is fixed in current mainline, gcc version 4.3.0 20070827 produces:

foo:
        pushl   %ebx
        movl    8(%esp), %ebx
        xorl    %edx, %edx
        movl    12(%esp), %ecx
        .p2align 4,,7
        .p2align 3
.L2:
        movl    (%ebx,%edx,4), %eax
        movl    %eax, (%ecx,%edx,4)
        addl    $1, %edx
        cmpl    $4, %edx
        jne     .L2
        popl    %ebx
        ret


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]