[Bug target/120165] [m68k] gfortran segfaults when built with LRA enabled

gcc-bugzilla@michael-karcher.net gcc-bugzilla@gcc.gnu.org
Sat Jun 27 17:03:06 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120165

--- Comment #8 from Michael Karcher <gcc-bugzilla@michael-karcher.net> ---
Created attachment 64875
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64875&action=edit
Minimal test case

Attached an example that causes a runtime crash (due to the bad store
overwriting something vital) if compiled with "-O2", but works if compiled with
"-O2 -no-omit-frame-pointer".

It does not crash with -O0 -omit-frame-pointer, becasue the example depends on
certain spilling decision which vary with optimization level.


More information about the Gcc-bugs mailing list