builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.

* builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare
	warning.

From-SVN: r163192
This commit is contained in:
Jakub Jelinek 2010-08-12 16:32:25 +02:00 committed by Jakub Jelinek
parent 07fd92beab
commit d2be807154
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-08-12 Jakub Jelinek <jakub@redhat.com>
* builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare
warning.
2010-08-12 Richard Guenther <rguenther@suse.de> 2010-08-12 Richard Guenther <rguenther@suse.de>
PR tree-optimization/45232 PR tree-optimization/45232

View File

@ -8399,7 +8399,7 @@ fold_builtin_memory_op (location_t loc, tree dest, tree src,
if (readonly_data_expr (src) if (readonly_data_expr (src)
|| (host_integerp (len, 1) || (host_integerp (len, 1)
&& (MIN (src_align, dest_align) / BITS_PER_UNIT && (MIN (src_align, dest_align) / BITS_PER_UNIT
>= tree_low_cst (len, 1)))) >= (unsigned HOST_WIDE_INT) tree_low_cst (len, 1))))
{ {
tree fn = implicit_built_in_decls[BUILT_IN_MEMCPY]; tree fn = implicit_built_in_decls[BUILT_IN_MEMCPY];
if (!fn) if (!fn)