This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] calls.c: fix warning on targets without REG_PARM_STACK_SPACE
- From: David Malcolm <dmalcolm at redhat dot com>
- To: Kyrill Tkachov <kyrylo dot tkachov at foss dot arm dot com>, gcc-patches at gcc dot gnu dot org, jit at gcc dot gnu dot org
- Cc: David Malcolm <dmalcolm at redhat dot com>
- Date: Fri, 20 May 2016 15:22:17 -0400
- Subject: [PATCH] calls.c: fix warning on targets without REG_PARM_STACK_SPACE
- Authentication-results: sourceware.org; auth=none
- References: <573F4368 dot 8090902 at foss dot arm dot com>
On Fri, 2016-05-20 at 18:03 +0100, Kyrill Tkachov wrote:
[...snip...]
> REG_PARM_STACK_SPACE is not defined on arm, which makes
> reg_parm_stack_space
> unused in this function and so breaks bootstrap on arm.
> Can you please add an ATTRIBUTE_UNUSED to reg_parm_stack_space?
>
> Thanks,
> Kyrill
[...snip...]
Sorry about the breakage.
I manually verified that the following fixes the warning with
--target=arm-linux-gnueabi.
Successfully bootstrapped®rtested on x86_64-pc-linux-gnu.
Committed to trunk as r236527.
gcc/ChangeLog:
* calls.c (can_implement_as_sibling_call_p): Mark param
reg_parm_stack_space with ATTRIBUTE_UNUSED.
---
gcc/calls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/calls.c b/gcc/calls.c
index 1b12eca..587969f 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -2373,7 +2373,7 @@ static bool
can_implement_as_sibling_call_p (tree exp,
rtx structure_value_addr,
tree funtype,
- int reg_parm_stack_space,
+ int reg_parm_stack_space ATTRIBUTE_UNUSED,
tree fndecl,
int flags,
tree addr,
--
1.8.5.3