Commit cd1cae35 by Richard Guenther Committed by Richard Biener

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
parent bf1431e3
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> 2012-07-19 Tristan Gingold <gingold@adacore.com>
Richard Henderson <rth@redhat.com> Richard Henderson <rth@redhat.com>
......
...@@ -1140,7 +1140,7 @@ not_size_aligned (tree exp) ...@@ -1140,7 +1140,7 @@ not_size_aligned (tree exp)
if (!host_integerp (TYPE_SIZE (TREE_TYPE (exp)), 1)) if (!host_integerp (TYPE_SIZE (TREE_TYPE (exp)), 1))
return true; 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)); > get_object_alignment (exp));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment