aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2015-07-28 06:54:50 +0000
committerThomas Preud'homme <thopre01@gcc.gnu.org>2015-07-28 06:54:50 +0000
commit68512012b7c1a49d3851f62e089648c6e1276224 (patch)
treee5d7c95c740b09370dedadb743d1910a1d2660f2
parent85d91a6bd4327466242568b4ccb1269d39e2fc3c (diff)
downloadgcc-68512012b7c1a49d3851f62e089648c6e1276224.zip
gcc-68512012b7c1a49d3851f62e089648c6e1276224.tar.gz
gcc-68512012b7c1a49d3851f62e089648c6e1276224.tar.bz2
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 <thomas.preudhomme@arm.com> 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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-math-opts.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 90b4932..dcc18bd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
+
+ 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 <vogt@linux.vnet.ibm.com>
* 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 028a832..eae5358 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;