re PR middle-end/30028 (bcopy is wrongly converted to memcpy)

PR middle-end/30028
	* builtins.c (fold_builtin_memory_op): Fix typo in the check for
	memmove/bcopy->memcpy conversion.

From-SVN: r119375
This commit is contained in:
Jan Hubicka 2006-11-30 20:36:02 +01:00 committed by Jan Hubicka
parent 11d90e2dd0
commit f7b410e0fb
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-11-30 Jan Hubicka <jh@suse.cz>
PR middle-end/30028
* builtins.c (fold_builtin_memory_op): Fix typo in the check for
memmove/bcopy->memcpy conversion.
2006-11-30 Carlos O'Donell <carlos@codesourcery.com>
* doc/tm.texi (MAX_OFILE_ALIGNMENT): Document default.

View File

@ -8176,7 +8176,7 @@ fold_builtin_memory_op (tree arglist, tree type, bool ignore, int endp)
if (dest_align && src_align
&& (readonly_data_expr (src)
|| (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)))))
{
tree fn = implicit_built_in_decls[BUILT_IN_MEMCPY];