Patchwork [AArch64] Adjust gcc.dg/torture/stackalign/builtin-apply-2.c

login
register
mail settings
Submitter Yufeng Zhang
Date June 17, 2013, 1:43 p.m.
Message ID <51BF126D.9020504@arm.com>
Download mbox | patch
Permalink /patch/251853/
State New
Headers show

Comments

Yufeng Zhang - June 17, 2013, 1:43 p.m.
Hi,

This patch sets STACK_ARGUMENTS_SIZE with 0 for AArch64 as variadic 
arguments to 'bar' are passed in registers on this target.

OK for the trunk?

Thanks,
Yufeng

gcc/testsuite/

	* gcc.dg/torture/stackalign/builtin-apply-2.c: set
	STACK_ARGUMENTS_SIZE with 0 if __aarch64__ is defined.
Marcus Shawcroft - June 18, 2013, 5:23 a.m.
OK
/Marcus

On 17 June 2013 14:43, Yufeng Zhang <Yufeng.Zhang@arm.com> wrote:
> Hi,
>
> This patch sets STACK_ARGUMENTS_SIZE with 0 for AArch64 as variadic
> arguments to 'bar' are passed in registers on this target.
>
> OK for the trunk?
>
> Thanks,
> Yufeng
>
> gcc/testsuite/
>
>         * gcc.dg/torture/stackalign/builtin-apply-2.c: set
>         STACK_ARGUMENTS_SIZE with 0 if __aarch64__ is defined.

Patch

diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-2.c b/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-2.c
index cbb38ef..7982210 100644
--- a/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-2.c
+++ b/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-2.c
@@ -16,7 +16,7 @@ 
    E, F and G are passed on stack.  So the size of the stack argument
    data is 20.  */
 #define STACK_ARGUMENTS_SIZE  20
-#elif defined __MMIX__
+#elif defined __aarch64__ || defined __MMIX__
 /* No parameters on stack for bar.  */
 #define STACK_ARGUMENTS_SIZE 0
 #else