------- Comment #4 from carrot at google dot com 2009-06-22 08:00 ------- Sorry I didn't make it clear. It is a performance bug, not a code size issue. If the epilogue is a simple return instruction, the branch to return can be replaced by the return instruction. So we can execute one less instruction at run time without any code size penalty.
It looks the code at function.c:5078 can't be applied to thumb. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40499