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 optimization/2960] Duplicate loop conditions even with -Os


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


debian-gcc at lists dot debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |herbert at gondor dot apana
                   |                            |dot org dot au


------- Additional Comments From debian-gcc at lists dot debian dot org  2003-08-10 15:33 -------
Herbert Xu writes:

Although the upstream fix certainly seems to have corrected the 
problem, gcc-3.3 -Os from unstable still generates basically the same 
code with the dupliate test of %ebx against k: 
 
a: 
        pushl   %ebp 
        movl    %esp, %ebp 
        pushl   %ebx 
        movl    8(%ebp), %ebx 
        cmpl    %ebx, k 
        jge     .L7 
.L5: 
        call    b 
        cmpl    %ebx, k 
        jl      .L5 
.L7: 
        popl    %ebx 
        leave 
        ret 
        .size   a, .-a 
        .comm   k,4,4 
        .ident  "GCC: (GNU) 3.3 (Debian)" 
--


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