aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-profile.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-04-15 16:12:01 +0000
committerRichard Guenther <rguenther@suse.de>2009-04-15 16:12:01 +0000
commit6b5c9160c82201e47ee80705e8c49c095f4442c8 (patch)
treedf6e6b24e71dfa49774871537c516ac031b4d427 /gcc/tree-profile.c
parentabb5608cf1ff4480298a9fe99c91044898ec7d85 (diff)
2009-04-15 Richard Guenther <rguenther@suse.de>
* omp-low.c (lower_rec_input_clauses): Build correct address expressions. (expand_omp_for_generic): Fix multiplication type. * tree-loop-distribution.c (build_size_arg): Build a size_t argument. (generate_memset_zero): Fix types. * tree-profile.c (prepare_instrumented_value): Correctly widen a pointer. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@146129 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r--gcc/tree-profile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c
index 06f113bea09..8ffedf1823e 100644
--- a/gcc/tree-profile.c
+++ b/gcc/tree-profile.c
@@ -208,6 +208,8 @@ static tree
prepare_instrumented_value (gimple_stmt_iterator *gsi, histogram_value value)
{
tree val = value->hvalue.value;
+ if (POINTER_TYPE_P (TREE_TYPE (val)))
+ val = fold_convert (sizetype, val);
return force_gimple_operand_gsi (gsi, fold_convert (gcov_type_node, val),
true, NULL_TREE, true, GSI_SAME_STMT);
}