summaryrefslogtreecommitdiff
path: root/gcc/ipa-str-reorg-dead-field-eliminate.c
diff options
context:
space:
mode:
authorErick Ochoa <erick.ochoa@theobroma-systems.com>2020-02-21 19:38:01 +0100
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-05-14 14:45:39 +0200
commitb501f525381afa18d0302d72b39db38c8c8de559 (patch)
tree86b610afab1dfe4d71aea8b9b28cf2466ed9aa24 /gcc/ipa-str-reorg-dead-field-eliminate.c
parentb21b31075fc8af2d3721f75b3ca1125c566088b5 (diff)
Fixes warning
Diffstat (limited to 'gcc/ipa-str-reorg-dead-field-eliminate.c')
-rw-r--r--gcc/ipa-str-reorg-dead-field-eliminate.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/ipa-str-reorg-dead-field-eliminate.c b/gcc/ipa-str-reorg-dead-field-eliminate.c
index 34f4c1c4651..77e3b38e2b7 100644
--- a/gcc/ipa-str-reorg-dead-field-eliminate.c
+++ b/gcc/ipa-str-reorg-dead-field-eliminate.c
@@ -2275,9 +2275,8 @@ rewrite_call_lhs (gimple *stmt, gimple_stmt_iterator &gsi,
}
static void
-rewrite_call_rhs (gimple *stmt, gimple_stmt_iterator &gsi,
- hash_map<const_tree, const_tree> &type_map,
- hash_map<const_tree, const_tree> &inverse)
+rewrite_call_rhs (gimple *stmt, __attribute__((unused)) gimple_stmt_iterator &gsi,
+ hash_map<const_tree, const_tree> &type_map)
{
gcc_assert (stmt);
tree fn = gimple_call_fn (stmt);
@@ -2301,7 +2300,7 @@ rewrite_call (gimple *stmt, gimple_stmt_iterator &gsi,
hash_map<const_tree, const_tree> &inverse)
{
rewrite_call_lhs (stmt, gsi, type_map, inverse);
- rewrite_call_rhs (stmt, gsi, type_map, inverse);
+ rewrite_call_rhs (stmt, gsi, type_map);
}
static void