store-merging: Fix up -Wnarrowing warning
authorJakub Jelinek <jakub@redhat.com>
Mon, 5 Oct 2020 07:09:41 +0000 (09:09 +0200)
committerJakub Jelinek <jakub@redhat.com>
Mon, 5 Oct 2020 07:09:41 +0000 (09:09 +0200)
I've noticed a -Wnarrowing warning on gimple-ssa-store-merging.c, this
change fixes that up.

2020-10-05  Jakub Jelinek  <jakub@redhat.com>

* 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

index fa2609f4d866d6aa55d7d06789f0ef6747c16cfb..28fc2e282befbb131029b2e47ee9aaeb530d787d 100644 (file)
@@ -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)
        {