From e42348b8cdb1eeaaa0f588c1b2551dbe10ff773b Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 16 Mar 2011 11:23:14 +0100 Subject: [PATCH] var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED to nargs. * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED to nargs. From-SVN: r171040 --- gcc/ChangeLog | 5 +++++ gcc/var-tracking.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 351c745608f..34d3d943430 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-03-16 Jakub Jelinek + + * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED + to nargs. + 2011-03-16 Rainer Orth PR lto/46944 diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c index ee180f13f62..266f11fe46c 100644 --- a/gcc/var-tracking.c +++ b/gcc/var-tracking.c @@ -5620,7 +5620,7 @@ prepare_call_arguments (basic_block bb, rtx insn) type = NULL; else { - int nargs = list_length (TYPE_ARG_TYPES (type)); + int nargs ATTRIBUTE_UNUSED = list_length (TYPE_ARG_TYPES (type)); link = CALL_INSN_FUNCTION_USAGE (insn); #ifndef PCC_STATIC_STRUCT_RETURN if (aggregate_value_p (TREE_TYPE (type), type) -- 2.30.2