* fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
authorMartin Liska <mliska@suse.cz>
Wed, 9 Nov 2016 17:55:12 +0000 (18:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 9 Nov 2016 17:55:12 +0000 (18:55 +0100)
From-SVN: r242011

gcc/ChangeLog
gcc/fold-const-call.c

index d5616524c0df49c4fde41197557143143567067d..28f64ed3e198407d862e32c643dde59b9ea7017f 100644 (file)
@@ -1,3 +1,7 @@
+2016-11-09  Martin Liska  <mliska@suse.cz>
+
+       * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
+
 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/77718
index 38f9717f139e4c5b1ae41a6e80cf2641676bcecd..e2d0eaf02288500a29399d2397321114a8ce75a9 100644 (file)
@@ -1506,7 +1506,8 @@ tree
 fold_const_call (combined_fn fn, tree type, tree arg0, tree arg1, tree arg2)
 {
   const char *p0, *p1;
-  size_t s0, s1, s2 = 0;
+  unsigned HOST_WIDE_INT s0, s1;
+  size_t s2 = 0;
   switch (fn)
     {
     case CFN_BUILT_IN_STRNCMP: