Commit f7b410e0 by Jan Hubicka Committed by Jan Hubicka

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
parent 11d90e2d
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> 2006-11-30 Carlos O'Donell <carlos@codesourcery.com>
* doc/tm.texi (MAX_OFILE_ALIGNMENT): Document default. * doc/tm.texi (MAX_OFILE_ALIGNMENT): Document default.
......
...@@ -8176,7 +8176,7 @@ fold_builtin_memory_op (tree arglist, tree type, bool ignore, int endp) ...@@ -8176,7 +8176,7 @@ fold_builtin_memory_op (tree arglist, tree type, bool ignore, int endp)
if (dest_align && src_align if (dest_align && src_align
&& (readonly_data_expr (src) && (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))))) tree_low_cst (len, 1)))))
{ {
tree fn = implicit_built_in_decls[BUILT_IN_MEMCPY]; tree fn = implicit_built_in_decls[BUILT_IN_MEMCPY];
......
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