From 52ca6d3504b78e472b922b525dd4294fbc95ea8d Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 28 Jan 2007 23:27:37 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/builtins.c | 3 ++- gcc/value-prof.c | 2 +- 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 + * builtins.c (expand_builtin_memset): Fix typo in my last patch. + * value-prof.c (stringop_block_profile): Likewise. + +2007-01-28 Jan Hubicka + * 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; -- 2.7.4