[PATCH,ARM] Fix PR56732

Greta Yorsh greta.yorsh@arm.com
Thu May 2 12:53:00 GMT 2013


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.Yorsh@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.Yorsh@arm.com>

	PR target/56732
	* gcc.target/arm/pr56732-1.c: New test.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr56732.v2.patch.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130502/fb4aa081/attachment.txt>


More information about the Gcc-patches mailing list