OSDN Git Service

* builtins.c (expand_builtin_memset): Expand for variable sized
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Feb 2000 18:57:21 +0000 (18:57 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Feb 2000 18:57:21 +0000 (18:57 +0000)
lengths too.

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

gcc/ChangeLog
gcc/builtins.c

index 55b0b15..0152ec6 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 1ca5b5d..aaacc8d 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);