]> git.ipfire.org Git - people/ms/gcc.git/commit
Fix PR target/107248
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 14 Oct 2022 09:52:04 +0000 (11:52 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 14 Oct 2022 09:57:28 +0000 (11:57 +0200)
commita5a6598d5b1d29741993371310c0bb8ca57e190c
treeab4784fdc3e3828baf8b42b1df9366160ea33e99
parent323df4c0b84be1aec115684be4fbb005bf186492
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