PR middle-end/30028
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Nov 2006 19:36:02 +0000 (19:36 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Nov 2006 19:36:02 +0000 (19:36 +0000)
* builtins.c (fold_builtin_memory_op): Fix typo in the check for
memmove/bcopy->memcpy conversion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119375 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/builtins.c

index bc615cf..44bb553 100644 (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.
index 869f1dc..806d556 100644 (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];