This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/33050] [avr] unnessary register save
- From: "eweddington at cso dot atmel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Aug 2007 17:09:37 -0000
- Subject: [Bug target/33050] [avr] unnessary register save
- References: <bug-33050-14966@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from eweddington at cso dot atmel dot com 2007-08-22 17:09 -------
4.3.0 20070817 snapshot generates this for the testcase:
test2:
push r16
push r17
/* prologue: function */
/* frame size = 0 */
mov r16,r24
ldi r24,lo8(10)
call foo
mov r17,r24
ldi r24,lo8(10)
call foo
mov r24,r16
add r24,r17
/* epilogue start */
pop r17
pop r16
ret
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33050