diff mbox

calls.c: fix warning on targets without REG_PARM_STACK_SPACE

Message ID 1463772137-9323-1-git-send-email-dmalcolm@redhat.com
State New
Headers show

Commit Message

David Malcolm May 20, 2016, 7:22 p.m. UTC
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&regrtested 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 mbox

Patch

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,