diff options
author | Richard Guenther <rguenther@suse.de> | 2012-07-19 08:48:01 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-07-19 08:48:01 +0000 |
commit | cd1cae3590e875901f0abbd61be8c3109c03d5bc (patch) | |
tree | 94334141cb8cb1aa1f854004605a8af27d6ec432 /gcc | |
parent | bf1431e3596b45dc1702fd7be7dbf3f51abda38e (diff) | |
download | gcc-cd1cae3590e875901f0abbd61be8c3109c03d5bc.zip gcc-cd1cae3590e875901f0abbd61be8c3109c03d5bc.tar.gz gcc-cd1cae3590e875901f0abbd61be8c3109c03d5bc.tar.bz2 |
re PR tree-optimization/53970 (-ftree-vectorization does not handle well unaligned data)
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree-vect-data-refs.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 174d62f..c4b114e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 147fa90..eefd9fa 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)); } |