http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53621
--- Comment #1 from Lawrence Sebald <lsebald1 at umbc dot edu> 2012-06-10 02:29:40 UTC --- Created attachment 27594 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27594 Remove line forcing -fomit-frame-pointer on sh-elf. The problem seems to boil down to line 750 of gcc/config/sh/sh.c (in sh_option_override), which sets flag_omit_frame_pointer to non-zero if the preferred debugging format is dwarf2 (which it is on sh-elf). It doesn't seem that any other targets (that I noticed) do anything similar, so it does seem a bit out of place to do so. Removing that line (as the attached patch does) makes it so that -fno-omit-frame-pointer works as expected.