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:35:22 +0100
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-05-14 14:45:39 +0200
commitb21b31075fc8af2d3721f75b3ca1125c566088b5 (patch)
tree6bedf028e554da195cf143123c869a32fae5d12a /gcc/ipa-str-reorg-dead-field-eliminate.c
parent7661edf7a088a0559b2b19496dc7ee2c59132918 (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 42c5d16e1ed..34f4c1c4651 100644
--- a/gcc/ipa-str-reorg-dead-field-eliminate.c
+++ b/gcc/ipa-str-reorg-dead-field-eliminate.c
@@ -2305,9 +2305,8 @@ rewrite_call (gimple *stmt, gimple_stmt_iterator &gsi,
}
static void
-rewrite_cond (gimple *stmt, gimple_stmt_iterator &gsi,
- hash_map<const_tree, const_tree> &type_map,
- hash_map<const_tree, const_tree> &inverse)
+rewrite_cond (gimple *stmt, __attribute((unused)) gimple_stmt_iterator &gsi,
+ hash_map<const_tree, const_tree> &type_map)
{
tree lhs = gimple_cond_lhs (stmt);
tree rhs = gimple_cond_rhs (stmt);
@@ -2360,7 +2359,7 @@ rewrite_stmt (gimple *stmt, gimple_stmt_iterator &gsi,
rewrite_call (stmt, gsi, type_map, inverse);
break;
case GIMPLE_COND:
- rewrite_cond (stmt, gsi, type_map, inverse);
+ rewrite_cond (stmt, gsi, type_map);
break;
case GIMPLE_PHI:
rewrite_phi (stmt, gsi, type_map);