aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2007-01-28 23:27:37 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2007-01-28 22:27:37 +0000
commit52ca6d3504b78e472b922b525dd4294fbc95ea8d (patch)
tree118d1aacc6e089248cbea2cec68c60f448af81dc /gcc
parent079a182e02a0720f9ac230c212fd202df3e6bd9e (diff)
downloadgcc-52ca6d3504b78e472b922b525dd4294fbc95ea8d.zip
gcc-52ca6d3504b78e472b922b525dd4294fbc95ea8d.tar.gz
gcc-52ca6d3504b78e472b922b525dd4294fbc95ea8d.tar.bz2
builtins.c (expand_builtin_memset): Fix typo in my last patch.
* builtins.c (expand_builtin_memset): Fix typo in my last patch. * value-prof.c (stringop_block_profile): Likewise. From-SVN: r121272
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/builtins.c3
-rw-r--r--gcc/value-prof.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1e8f296..b04aed2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 7947907..a2f540a 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -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);
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index 4734355..869e169 100644
--- a/gcc/value-prof.c
+++ b/gcc/value-prof.c
@@ -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;