diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b53704c94df..e2d7b65210e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2016-12-13 Marek Polacek + + * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change + parameters' type from int to HOST_WIDE_INT. + (compute_overlap_steps_for_affine_1_2): Change parameters' type from + int to HOST_WIDE_INT. + (build_classic_dist_vector_1): Likewise. + (add_multivariate_self_dist): Likewise. + 2016-12-13 Michael Matz PR tree-optimization/78725 diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 1408c242f22..3c28280171b 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -2164,7 +2164,9 @@ initialize_matrix_A (lambda_matrix A, tree chrec, unsigned index, int mult) constructed as evolutions in dimension DIM. */ static void -compute_overlap_steps_for_affine_univar (int niter, int step_a, int step_b, +compute_overlap_steps_for_affine_univar (HOST_WIDE_INT niter, + HOST_WIDE_INT step_a, + HOST_WIDE_INT step_b, affine_fn *overlaps_a, affine_fn *overlaps_b, tree *last_conflicts, int dim) @@ -2172,8 +2174,8 @@ compute_overlap_steps_for_affine_univar (int niter, int step_a, int step_b, if (((step_a > 0 && step_b > 0) || (step_a < 0 && step_b < 0))) { - int step_overlaps_a, step_overlaps_b; - int gcd_steps_a_b, last_conflict, tau2; + HOST_WIDE_INT step_overlaps_a, step_overlaps_b; + HOST_WIDE_INT gcd_steps_a_b, last_conflict, tau2; gcd_steps_a_b = gcd (step_a, step_b); step_overlaps_a = step_b / gcd_steps_a_b; @@ -2227,7 +2229,7 @@ compute_overlap_steps_for_affine_1_2 (tree chrec_a, tree chrec_b, tree *last_conflicts) { bool xz_p, yz_p, xyz_p; - int step_x, step_y, step_z; + HOST_WIDE_INT step_x, step_y, step_z; HOST_WIDE_INT niter_x, niter_y, niter_z, niter; affine_fn overlaps_a_xz, overlaps_b_xz; affine_fn overlaps_a_yz, overlaps_b_yz; @@ -3192,7 +3194,8 @@ build_classic_dist_vector_1 (struct data_dependence_relation *ddr, if (TREE_CODE (access_fn_a) == POLYNOMIAL_CHREC && TREE_CODE (access_fn_b) == POLYNOMIAL_CHREC) { - int dist, index; + HOST_WIDE_INT dist; + int index; int var_a = CHREC_VARIABLE (access_fn_a); int var_b = CHREC_VARIABLE (access_fn_b); @@ -3266,7 +3269,7 @@ add_multivariate_self_dist (struct data_dependence_relation *ddr, tree c_2) tree c_1 = CHREC_LEFT (c_2); tree c_0 = CHREC_LEFT (c_1); lambda_vector dist_v; - int v1, v2, cd; + HOST_WIDE_INT v1, v2, cd; /* Polynomials with more than 2 variables are not handled yet. When the evolution steps are parameters, it is not possible to