]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
builtins.c (expand_builtin_memset): Expand for variable sized lengths too.
authorJan Hubicka <jh@suse.cz>
Tue, 1 Feb 2000 18:57:21 +0000 (19:57 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 1 Feb 2000 18:57:21 +0000 (18:57 +0000)
* builtins.c (expand_builtin_memset): Expand for variable sized
lengths too.

From-SVN: r31738

gcc/ChangeLog
gcc/builtins.c

index 55b0b15f045738501a53398bdb17ac3b75f5ae9c..0152ec687ea8ac250a969da452ac53f2400be1c3 100644 (file)
@@ -1,3 +1,8 @@
+Tue Feb  1 19:53:27 CET 2000  Jan Hubicka  <jh@suse.cz>
+
+       * builtins.c (expand_builtin_memset): Expand for variable sized
+       lengths too.
+
 2000-02-01  David Billinghurst <David.Billinghurst@riotinto.com.au> 
 
        * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
index 1ca5b5dbb5e7f6dfab2daf2c5081164ecd21a23e..aaacc8decc18c00f92ee2ed86db57ccc6f3db724 100644 (file)
@@ -1514,11 +1514,7 @@ expand_builtin_memset (exp)
       if (expand_expr (val, NULL_RTX, VOIDmode, 0) != const0_rtx)
        return 0;
 
-      /* If LEN does not expand to a constant, don't do this
-        operation in-line.  */
       len_rtx = expand_expr (len, NULL_RTX, VOIDmode, 0);
-      if (GET_CODE (len_rtx) != CONST_INT)
-       return 0;
 
       dest_mem = get_memory_rtx (dest);