This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/2960] Duplicate loop conditions even with -Os
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2003 15:41:58 -0000
- Subject: [Bug optimization/2960] Duplicate loop conditions even with -Os
- References: <20010526113600.2960.94701-quiet@bugs.debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-10 15:41 -------
This is already fixed on the mainline:
a:
pushl %ebp
movl %esp, %ebp
pushl %ebx
movl 8(%ebp), %ebx
.L7:
cmpl %ebx, k
jge .L6
call b
jmp .L7
.L6:
popl %ebx
leave
ret