aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2006-11-30 20:36:02 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2006-11-30 19:36:02 +0000
commitf7b410e0fbe76b707f76381f7dd684171353d1a9 (patch)
tree5245da9b3121b9d13521c2d7fa9c8c72f2353f23 /gcc/builtins.c
parent11d90e2dd05bfabe45c26271b33b1d55ae4ef207 (diff)
downloadgcc-f7b410e0fbe76b707f76381f7dd684171353d1a9.zip
gcc-f7b410e0fbe76b707f76381f7dd684171353d1a9.tar.gz
gcc-f7b410e0fbe76b707f76381f7dd684171353d1a9.tar.bz2
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
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 869f1dc..806d556 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -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];