On 02/05/13 13:52, Greta Yorsh wrote:
Epilogue in RTL (r188743) generated for naked functions adds simple return
jump insn and causes an ICE, as described here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56732
There is a missing check of really_return argument in arm_expand_epilogue.
This patch adds the missing check and a new test.
No regression on qemu for arm-none-eabi with cortex-a15 arm/thumb.
Bootstrap successful on Cortex-A15 and no regression.
Ok for trunk?
Thanks,
Greta
gcc/ChangeLog
2013-05-02 Greta Yorsh <greta.yo...@arm.com>
PR target/56732
* config/arm/arm.c (arm_expand_epilogue): Check really_return before
generating simple_return for naked functions.
gcc/testsuite/ChangeLog
2013-05-02 Greta Yorsh <greta.yo...@arm.com>
PR target/56732
* gcc.target/arm/pr56732-1.c: New test.
OK.
R.