diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-10-07 12:16:55 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-10-07 12:16:55 +0000 |
commit | 8776294dcd764243fae9071e27166260ba7a9129 (patch) | |
tree | aa99b9b3770fe91d8227daea8d5b0194a9890bec /gcc/expr.c | |
parent | 95c0ad199796093e163bdf5d3d9e88c39616f1fd (diff) | |
download | gcc-8776294dcd764243fae9071e27166260ba7a9129.tar.gz |
PR tree-optimization/77880
* expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
necessary.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240862 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c index d15e98bdfe8..2256ac9309a 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -785,7 +785,7 @@ by_pieces_ninsns (unsigned HOST_WIDE_INT l, unsigned int align, case COMPARE_BY_PIECES: int batch = targetm.compare_by_pieces_branch_ratio (mode); int batch_ops = 4 * batch - 1; - int full = n_pieces / batch; + unsigned HOST_WIDE_INT full = n_pieces / batch; n_insns += full * batch_ops; if (n_pieces % batch != 0) n_insns++; |