From: Thomas Preud'homme Date: Tue, 28 Jul 2015 06:54:50 +0000 (+0000) Subject: re PR tree-optimization/66828 (gcc/tree-ssa-math-opts.c:2182:38: runtime error: left... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68512012b7c1a49d3851f62e089648c6e1276224;p=gcc.git re PR tree-optimization/66828 (gcc/tree-ssa-math-opts.c:2182:38: runtime error: left shift of 72057594037927936 by 8 places cannot be represented in type 'long int') 2015-07-28 Thomas Preud'homme PR tree-optimization/66828 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc from int64_t to uint64_t. From-SVN: r226298 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 90b4932a4f6..dcc18bdc77a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-07-28 Thomas Preud'homme + + PR tree-optimization/66828 + * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc + from int64_t to uint64_t. + 2015-07-28 Dominik Vogt * opts-common.c (read_cmdline_option): List DriverOnly enum values diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index 028a8320671..eae53580ec3 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -2122,7 +2122,7 @@ perform_symbolic_merge (gimple source_stmt1, struct symbolic_number *n1, the same base (array, structure, ...). */ if (gimple_assign_rhs1 (source_stmt1) != gimple_assign_rhs1 (source_stmt2)) { - int64_t inc; + uint64_t inc; HOST_WIDE_INT start_sub, end_sub, end1, end2, end; struct symbolic_number *toinc_n_ptr, *n_end;