From 21f65995e068963d4ceaec5b6730223213e98af7 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 5 Oct 2020 09:09:41 +0200 Subject: [PATCH] store-merging: Fix up -Wnarrowing warning I've noticed a -Wnarrowing warning on gimple-ssa-store-merging.c, this change fixes that up. 2020-10-05 Jakub Jelinek * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Use ~0U instead of ~0 in unsigned int array initializer. --- gcc/gimple-ssa-store-merging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/gimple-ssa-store-merging.c b/gcc/gimple-ssa-store-merging.c index fa2609f4d86..28fc2e282be 100644 --- a/gcc/gimple-ssa-store-merging.c +++ b/gcc/gimple-ssa-store-merging.c @@ -3804,7 +3804,7 @@ imm_store_chain_info::output_merged_store (merged_store_group *group) Similarly, if there is a whole region clear first, prefer expanding it together compared to expanding clear first followed by merged further stores. */ - unsigned cnt[4] = { ~0, ~0, ~0, ~0 }; + unsigned cnt[4] = { ~0U, ~0U, ~0U, ~0U }; int pass_min = 0; for (int pass = 0; pass < 4; ++pass) { -- 2.30.2