re PR tree-optimization/53970 (-ftree-vectorization does not handle well unaligned...
authorRichard Guenther <rguenther@suse.de>
Thu, 19 Jul 2012 08:48:01 +0000 (08:48 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 19 Jul 2012 08:48:01 +0000 (08:48 +0000)
2012-07-19  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53970
* tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare
warning.

From-SVN: r189647

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

index 174d62f..c4b114e 100644 (file)
@@ -1,3 +1,9 @@
+2012-07-19  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/53970
+       * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare
+       warning.
 2012-07-19  Tristan Gingold  <gingold@adacore.com>
            Richard Henderson  <rth@redhat.com>
 
index 147fa90..eefd9fa 100644 (file)
@@ -1140,7 +1140,7 @@ not_size_aligned (tree exp)
   if (!host_integerp (TYPE_SIZE (TREE_TYPE (exp)), 1))
     return true;
 
-  return (tree_low_cst (TYPE_SIZE (TREE_TYPE (exp)), 1)
+  return (TREE_INT_CST_LOW (TYPE_SIZE (TREE_TYPE (exp)))
          > get_object_alignment (exp));
 }