http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42240
--- Comment #14 from Anitha Boyapati <anitha.boyapati at atmel dot com> 2010-11-09 10:24:11 UTC --- Created attachment 22339 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22339 Initial patch to fix the bug BB reordering pass is suppressed for naked functions. Also suppressed when the end of epilogue is reached.