]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2018-11-08 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Nov 2018 12:15:49 +0000 (12:15 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Nov 2018 12:15:49 +0000 (12:15 +0000)
* tree-data-ref.h (lambda_int): New typedef.
(lambda_vector_gcd): Adjust.
(lambda_vector_new): Likewise.
(lambda_matrix_new): Likewise.
* tree-data-ref.c  (print_lambda_vector): Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265914 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-data-ref.c
gcc/tree-data-ref.h

index b1a33a1097096ecabd70fab55e3a7888139a4335..4af240a16a6fedb4c7afd5581b0284c217fa75e1 100644 (file)
@@ -1,3 +1,11 @@
+2018-11-08  Richard Biener  <rguenther@suse.de>
+
+       * tree-data-ref.h (lambda_int): New typedef.
+       (lambda_vector_gcd): Adjust.
+       (lambda_vector_new): Likewise.
+       (lambda_matrix_new): Likewise.
+       * tree-data-ref.c  (print_lambda_vector): Adjust.
+
 2018-11-08  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/87929
index 66e780d635a1ada389e2d6f3c079901ed6e57f0d..6019c6168bfc74135be31d927e0f6d88ee904473 100644 (file)
@@ -393,7 +393,7 @@ print_lambda_vector (FILE * outfile, lambda_vector vector, int n)
   int i;
 
   for (i = 0; i < n; i++)
-    fprintf (outfile, "%3d ", vector[i]);
+    fprintf (outfile, "%3d ", (int)vector[i]);
   fprintf (outfile, "\n");
 }
 
index 525d27f04b96eb84910ac281a2474dcdcd7f4820..439a8b986dd88597bd1adab0fb6d5c4bcf8b0fe6 100644 (file)
@@ -138,7 +138,8 @@ struct dr_alias
    space. A vector space is a set that is closed under vector addition
    and scalar multiplication.  In this vector space, an element is a list of
    integers.  */
-typedef int *lambda_vector;
+typedef HOST_WIDE_INT lambda_int;
+typedef lambda_int *lambda_vector;
 
 /* An integer matrix.  A matrix consists of m vectors of length n (IE
    all vectors are the same length).  */
@@ -611,11 +612,11 @@ void split_constant_offset (tree , tree *, tree *);
 
 /* Compute the greatest common divisor of a VECTOR of SIZE numbers.  */
 
-static inline int
+static inline lambda_int
 lambda_vector_gcd (lambda_vector vector, int size)
 {
   int i;
-  int gcd1 = 0;
+  lambda_int gcd1 = 0;
 
   if (size > 0)
     {
@@ -632,7 +633,7 @@ static inline lambda_vector
 lambda_vector_new (int size)
 {
   /* ???  We shouldn't abuse the GC allocator here.  */
-  return ggc_cleared_vec_alloc<int> (size);
+  return ggc_cleared_vec_alloc<lambda_int> (size);
 }
 
 /* Clear out vector VEC1 of length SIZE.  */
@@ -686,7 +687,7 @@ lambda_matrix_new (int m, int n, struct obstack *lambda_obstack)
   mat = XOBNEWVEC (lambda_obstack, lambda_vector, m);
 
   for (i = 0; i < m; i++)
-    mat[i] = XOBNEWVEC (lambda_obstack, int, n);
+    mat[i] = XOBNEWVEC (lambda_obstack, lambda_int, n);
 
   return mat;
 }