Fix PR target/107248
commite39b170695a161feba7401b7d21d824db9ee1f8f
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 14 Oct 2022 09:52:04 +0000 (14 11:52 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 14 Oct 2022 09:55:29 +0000 (14 11:55 +0200)
treeb89956f9a8538387900574c4f94288255cdda3cc
parent6e8ce5d651b88cf9e91780105ca36dea83871d38
Fix PR target/107248

This is the infamous PR rtl-optimization/38644 rearing its ugly head for
leaf functions on SPARC more than a decade later...  Richard E.'s generic
solution has never been implemented so let's do as other RISC back-ends did.

gcc/
PR target/107248
* config/sparc/sparc.cc (sparc_expand_prologue): Emit a frame
blockage for leaf functions.
(sparc_flat_expand_prologue): Emit frame instead of full blockage.
(sparc_expand_epilogue): Emit a frame blockage for leaf functions.
(sparc_flat_expand_epilogue): Emit frame instead of full blockage.
gcc/config/sparc/sparc.cc