From 302356da473b5032be5f5cacb351982cb7d23ab8 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 9 Nov 2016 18:55:12 +0100 Subject: [PATCH] * fold-const-call.c (fold_const_call): Fix up type of s0 and s1. From-SVN: r242011 --- gcc/ChangeLog | 4 ++++ gcc/fold-const-call.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5616524c0d..28f64ed3e19 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-11-09 Martin Liska + + * fold-const-call.c (fold_const_call): Fix up type of s0 and s1. + 2016-11-09 Jakub Jelinek PR target/77718 diff --git a/gcc/fold-const-call.c b/gcc/fold-const-call.c index 38f9717f139..e2d0eaf0228 100644 --- a/gcc/fold-const-call.c +++ b/gcc/fold-const-call.c @@ -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: -- 2.30.2