aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-ssa-store-merging.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-10-05 09:09:41 +0200
committerJakub Jelinek <jakub@redhat.com>2020-10-05 09:09:41 +0200
commit21f65995e068963d4ceaec5b6730223213e98af7 (patch)
treed46ed699dc7f205d74862998fd9db3ea6e81c319 /gcc/gimple-ssa-store-merging.c
parentab3f4b27abe8abc947e84ef84bfc9a18797c5868 (diff)
downloadgcc-21f65995e068963d4ceaec5b6730223213e98af7.zip
gcc-21f65995e068963d4ceaec5b6730223213e98af7.tar.gz
gcc-21f65995e068963d4ceaec5b6730223213e98af7.tar.bz2
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 <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.
Diffstat (limited to 'gcc/gimple-ssa-store-merging.c')
-rw-r--r--gcc/gimple-ssa-store-merging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-ssa-store-merging.c b/gcc/gimple-ssa-store-merging.c
index fa2609f..28fc2e2 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)
{