* builtins.c (expand_builtin_memset): Fix typo in my last patch.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Jan 2007 22:27:37 +0000 (22:27 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Jan 2007 22:27:37 +0000 (22:27 +0000)
* value-prof.c (stringop_block_profile): Likewise.

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

gcc/ChangeLog
gcc/builtins.c
gcc/value-prof.c

index 1e8f296..b04aed2 100644 (file)
@@ -1,5 +1,10 @@
 2007-01-28  Jan Hubicka  <jh@suse.cz>
 
+       * builtins.c (expand_builtin_memset): Fix typo in my last patch.
+       * value-prof.c (stringop_block_profile): Likewise.
+
+2007-01-28  Jan Hubicka  <jh@suse.cz>
+
        * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
        variant handling histograms; add wrapper.
        (clear_storage_via_libcall): Export.
index 7947907..a2f540a 100644 (file)
@@ -3700,7 +3700,8 @@ expand_builtin_memset (tree arglist, rtx target, enum machine_mode mode,
                               builtin_memset_gen_str, val_rtx, dest_align, 0);
            }
          else if (!set_storage_via_setmem (dest_mem, len_rtx, val_rtx,
-                                           dest_align, -1, 0))
+                                           dest_align, expected_align,
+                                           expected_size))
            goto do_libcall;
 
          dest_mem = force_operand (XEXP (dest_mem, 0), NULL_RTX);
index 4734355..869e169 100644 (file)
@@ -1449,7 +1449,7 @@ stringop_block_profile (tree stmt, unsigned int *expected_align,
     }
   histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_IOR);
   if (!histogram)
-    *expected_size = -1;
+    *expected_align = 0;
   else
     {
       gcov_type count;