From: Richard Guenther Date: Thu, 19 Jul 2012 08:48:01 +0000 (+0000) Subject: re PR tree-optimization/53970 (-ftree-vectorization does not handle well unaligned... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd1cae3590e875901f0abbd61be8c3109c03d5bc;p=gcc.git re PR tree-optimization/53970 (-ftree-vectorization does not handle well unaligned data) 2012-07-19 Richard Guenther PR tree-optimization/53970 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning. From-SVN: r189647 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 174d62fc89b..c4b114ef254 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-07-19 Richard Guenther + + PR tree-optimization/53970 + * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare + warning. + 2012-07-19 Tristan Gingold Richard Henderson diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 147fa902cd6..eefd9fa143f 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -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)); }