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: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2003 15:33: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
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)"
--