https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60580
Jiong Wang <jiwang at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jiwang at gcc dot gnu.org --- Comment #7 from Jiong Wang <jiwang at gcc dot gnu.org> --- I'd take this for long term, hopefully could find a acceptable solution. X86 is default with -fomit-frame-pointer which makes the logic a little bit simpler, and thus X86 could survive in more normal case, but still fail in some corner cases. the fundamental problem is aarch64 and also x86 want to implement a finer control of frame pointer which let leaf function be possible without setting up frame record even under -fno-omit-frame-pointer. While gcc generic code is not aware of that.