]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/30028 (bcopy is wrongly converted to memcpy)
authorJan Hubicka <jh@suse.cz>
Thu, 30 Nov 2006 19:36:02 +0000 (20:36 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 30 Nov 2006 19:36:02 +0000 (19:36 +0000)
PR middle-end/30028
* builtins.c (fold_builtin_memory_op): Fix typo in the check for
memmove/bcopy->memcpy conversion.

From-SVN: r119375

gcc/ChangeLog
gcc/builtins.c

index bc615cfcc0d9635e19b73f441a3dc26b71811657..44bb553c6e58636627b560c974d4e6a4dff16f58 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 869f1dc91981ecb6f4050fe9a8b5088503a71845..806d55600a0b6a191d41de480e1c6998ee0c30ef 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];