This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][AArch64] LR register not used in leaf functions
- From: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>
- To: Jiong Wang <jiong dot wang at arm dot com>
- Cc: Kugan <kugan dot vivekanandarajah at linaro dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 11 Nov 2014 14:48:53 +0000
- Subject: Re: [PATCH][AArch64] LR register not used in leaf functions
- Authentication-results: sourceware.org; auth=none
- References: <54204387 dot 5090105 at linaro dot org> <54204727 dot 6080002 at arm dot com> <54272A2D dot 7030306 at linaro dot org> <542AC57A dot 20701 at arm dot com>
On 30 September 2014 16:00, Jiong Wang <jiong.wang@arm.com> wrote:
> gcc/
> * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as caller-save.
> (EPILOGUE_USES): Guard the check by epilogue_completed.
> * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for LR.
> (aarch64_can_eliminate): Check LR_REGNUM liveness.
>
> gcc/testsuite/
> * gcc.target/aarch64/lr_free_1.c: New testcase for -fomit-frame-pointer.
> * gcc.target/aarch64/lr_free_2.c: New testcase for leaf
> -fno-omit-frame-pointer.
OK /Marcus