diff options
author | Jakub Jelinek <jakub@redhat.com> | 2020-10-05 09:09:41 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2020-10-05 09:09:41 +0200 |
commit | 21f65995e068963d4ceaec5b6730223213e98af7 (patch) | |
tree | d46ed699dc7f205d74862998fd9db3ea6e81c319 /gcc/gimple-ssa-store-merging.c | |
parent | ab3f4b27abe8abc947e84ef84bfc9a18797c5868 (diff) | |
download | gcc-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.c | 2 |
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) { |