------- Comment #4 from eweddington at cso dot atmel dot com 2007-08-24 20:41 ------- (In reply to comment #3)
4.3.0 20070817 snapshot produces this for the second test case: test: push r17 /* prologue: function */ /* frame size = 0 */ mov r17,r24 call foo add r24,r17 /* epilogue start */ pop r17 ret So the second test case is optimized correctly when we get to 4.3.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33050