https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88160
Thorsten Otto <ad...@tho-otto.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ad...@tho-otto.de --- Comment #5 from Thorsten Otto <ad...@tho-otto.de> --- Another possible patch would be: --- a/gcc/config/m68k/m68k.cc 2023-07-27 10:13:04.000000000 +0200 +++ b/gcc/config/m68k/m68k.cc 2023-08-13 08:59:00.959510772 +0200 @@ -712,6 +712,14 @@ m68k_option_override (void) else m68k_sched_mac = MAC_NO; } + + /* + * disable -fcombine-stack-adjustments for coldfire/mshort combination, + * which generates wrong CFI offsets. + * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88160 + */ + if (TARGET_COLDFIRE && TARGET_SHORT && (write_symbols & DWARF2_DEBUG)) + flag_combine_stack_adjustments = 0; } This is only a workaround, but should prevent the bug.