re PR tree-optimization/77880 (out of memory building recent LLVM on ppc64le with...
authorBernd Schmidt <bernds@redhat.com>
Fri, 7 Oct 2016 12:16:55 +0000 (12:16 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Fri, 7 Oct 2016 12:16:55 +0000 (12:16 +0000)
PR tree-optimization/77880
* expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
necessary.

From-SVN: r240862

gcc/ChangeLog
gcc/expr.c

index ece1252c5ca9381bff7b4e34a634b3de1d9da727..e4f5198a029b0bf7f613db2335a94cc28eb99b84 100644 (file)
@@ -1,3 +1,9 @@
+2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
+
+       PR tree-optimization/77880
+       * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
+       necessary.
+
 2016-10-07  Marek Polacek  <polacek@redhat.com>
 
        PR c++/77803
index d15e98bdfe8a90a0d3022fd8478498fb3d9e6ffb..2256ac9309aa9704d502d02f6b4880cdc0d3af40 100644 (file)
@@ -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++;