This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/58387] wrong code at -Os and above on x86_64-linux-gnu (both 32-bit and 64-bit modes)
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Sep 2013 06:13:03 +0000
- Subject: [Bug middle-end/58387] wrong code at -Os and above on x86_64-linux-gnu (both 32-bit and 64-bit modes)
- Auto-submitted: auto-generated
- References: <bug-58387-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58387
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Not even with r202421.
Content of main with that revision for x86_64 -Os is:
.cfi_startproc
pushq %rcx
.cfi_def_cfa_offset 16
movl a(%rip), %esi
testl %esi, %esi
je .L4
negl %esi
testl %esi, %esi
jg .L3
jmp .L2
.L4:
xorl %esi, %esi
.L2:
movl $.LC0, %edi
xorl %eax, %eax
call printf
.L3:
xorl %eax, %eax
popq %rdx
.cfi_def_cfa_offset 8
ret