[Bug target/35926] Pushing / Poping ebx without using it.
tony.poppleton at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 10 01:42:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35926
--- Comment #8 from Tony Poppleton <tony.poppleton at gmail dot com> 2013-04-10 01:42:20 UTC ---
This appears to be fixed in GCC 4.8.0, compiling with just -S and -O3, the asm
output is now a much simpler:
.file "test.c"
.text
.p2align 4,,15
.globl add
.type add, @function
add:
.LFB0:
.cfi_startproc
andq $-2, %rsi
leaq (%rdi,%rsi), %rax
ret
.cfi_endproc
.LFE0:
.size add, .-add
.ident "GCC: (GNU) 4.8.0 20130316 (Red Hat 4.8.0-0.17)"
.section .note.GNU-stack,"",@progbits
More information about the Gcc-bugs
mailing list