This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][AArch64] LR register not used in leaf functions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]