This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/12617] New: jump to next instruction not always properly eliminated
- From: "zack at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Oct 2003 03:00:14 -0000
- Subject: [Bug optimization/12617] New: jump to next instruction not always properly eliminated
- 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=12617
Summary: jump to next instruction not always properly eliminated
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zack at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
I will shortly attach to this bug a test case and the assembly that it produces when
compiled by gcc 3.4 20031013 for i386. The key bit is
jmp .L16
.p2align 2,,3
.L14:
.L16:
movb (%ebx), %al
which should have been optimized down to
.p2align 2,,3
.L14:
movb (%ebx), %al