This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28940] [4.0/4.1/4.2 Regression] address selection does not work correctly
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2006 12:53:19 -0000
- Subject: [Bug c/28940] [4.0/4.1/4.2 Regression] address selection does not work correctly
- References: <bug-28940-10833@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from rguenth at gcc dot gnu dot org 2006-10-11 12:53 -------
I get (-O -m32) for C++:
_Z2f1i:
.LFB2:
pushl %ebp
.LCFI0:
movl %esp, %ebp
.LCFI1:
movl 8(%ebp), %edx
addl $1, %edx
movsbl b(%edx),%eax
movsbl a(%edx),%edx
addl %edx, %eax
popl %ebp
ret
which I thought was the good behavior.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28940