summaryrefslogtreecommitdiff
path: root/gcc/tree-profile.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-04-15 16:12:01 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-04-15 16:12:01 +0000
commitada39f0b23c61dd0c3acc45c73910b07c9fc03f3 (patch)
treedf6e6b24e71dfa49774871537c516ac031b4d427 /gcc/tree-profile.c
parent6866c6e8ff0cbc1d57f9ae603b5af155def03484 (diff)
downloadgcc-ada39f0b23c61dd0c3acc45c73910b07c9fc03f3.tar.gz
omp-low.c (lower_rec_input_clauses): Build correct address expressions.
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. From-SVN: r146129
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);
}