From: Jakub Jelinek Date: Mon, 5 Oct 2020 07:09:41 +0000 (+0200) Subject: store-merging: Fix up -Wnarrowing warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21f65995e068963d4ceaec5b6730223213e98af7;p=gcc.git 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. --- 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) {