This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/50448] [4.5/4.6/4.7 Regression] Missed optimization accessing struct component with integer address
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Oct 2011 10:24:56 +0000
- Subject: [Bug middle-end/50448] [4.5/4.6/4.7 Regression] Missed optimization accessing struct component with integer address
- Auto-submitted: auto-generated
- References: <bug-50448-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50448
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
Summary|[4.3/4.5/4.6/4.7 |[4.5/4.6/4.7 Regression]
|Regression] Missed |Missed optimization
|optimization accessing |accessing struct component
|struct component with |with integer address
|integer address |
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-27 10:24:56 UTC ---
Well, works "fine" on x86_64:
foo:
.LFB0:
.cfi_startproc
movb $-86, 2755
.L2:
movb 2754, %al
testb %al, %al
jns .L2
movl $2752, %eax
movb $-69, 3(%rax)
.L3:
movb 2754, %al
testb %al, %al
jns .L3
ret