fix Darwin bootstrap.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 14 Nov 2018 12:34:27 +0000 (12:34 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Wed, 14 Nov 2018 12:34:27 +0000 (12:34 +0000)
gcc/

* tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Cast
MAX_OFILE_ALIGNMENT as needed.

From-SVN: r266138

gcc/ChangeLog
gcc/tree-vect-data-refs.c

index a3b86595f2047bd9ea5d35cf6de3db66e7922b13..d77ae3666dbefbe499ca1d0afd9f0349a79a9dd3 100644 (file)
@@ -1,3 +1,8 @@
+2018-11-14  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Cast
+       MAX_OFILE_ALIGNMENT as needed.
+
 2018-11-14  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/88019
index 1cc0320f00d3c43d4fe44da5a61bd65f3a4ad952..deb7121623ee4408cba706b61743a06bcee57626 100644 (file)
@@ -6335,7 +6335,8 @@ vect_can_force_dr_alignment_p (const_tree decl, poly_uint64 alignment)
     return false;
 
   if (TREE_STATIC (decl))
-    return (known_le (alignment, MAX_OFILE_ALIGNMENT));
+    return (known_le (alignment,
+                     (unsigned HOST_WIDE_INT) MAX_OFILE_ALIGNMENT));
   else
     return (known_le (alignment, (unsigned HOST_WIDE_INT) MAX_STACK_ALIGNMENT));
 }