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.
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