This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH, AArch64, Testsuite] Specify -fno-use-caller-save for func-ret* tests
- From: Jeff Law <law at redhat dot com>
- To: Yufeng Zhang <Yufeng dot Zhang at arm dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>
- Date: Tue, 01 Jul 2014 11:26:24 -0600
- Subject: Re: [PATCH, AArch64, Testsuite] Specify -fno-use-caller-save for func-ret* tests
- Authentication-results: sourceware.org; auth=none
- References: <53B2D8F2 dot 9040407 at arm dot com>
On 07/01/14 09:51, Yufeng Zhang wrote:
This patch resolves a conflict between the aapcs64 test framework for
func-ret tests and the optimization option -fuse-caller-save, which was
enabled by default at -O1 or above recently.
Basically, the test framework has an inline-assembly based mechanism in
place which invokes the test facility function right on the return of a
tested function. The compiler with -fuse-caller-save is unable to
identify the unconventional call graph and carries out the optimization
Adding explicit LR clobbering field to the inline assembly doesn't solve
the issue as the compiler would simply generate extra save/store of LR
in the prologue/epilogue.
OK for the trunk?
(additional_flags_for_func_ret): New variable based on
(func-ret-*.c): Use the new variable.