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-06-03 16:05:10 +0200
commita2c11f552bd4516b8fafab29914e80e29734d886 (patch)
treec8aebe1e9c9d84372b6b8bf7164d2fa94e87bc86 /gcc/ipa-str-reorg-dead-field-eliminate.c
parent686ab502109e83c329c8005ffe6fa2aa8195b646 (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