------- Comment #2 from hubicka at ucw dot cz 2006-11-30 14:11 ------- Subject: Re: [4.3 Regression] bcopy is wrongly converted to memcpy
Hi, there is nice typo on the check validating the transformation. I am testing the patch and will commit it as obvious if it passes. Honza Index: builtins.c =================================================================== --- builtins.c (revision 119360) +++ builtins.c (working copy) @@ -8176,7 +8176,7 @@ fold_builtin_memory_op (tree arglist, tr 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]; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30028