diff options
author | Jeff Law <law@redhat.com> | 2005-05-24 14:19:13 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2005-05-24 14:19:13 -0600 |
commit | bde6c65de1ecc893a1ac83a9d89aeb555359c450 (patch) | |
tree | 929883b632ad4304f0f6c62c4f887885e3a41afc /gcc/tree-profile.c | |
parent | 04d0d7500ab88716be00db442865d93d3e4c5b7f (diff) | |
download | gcc-bde6c65de1ecc893a1ac83a9d89aeb555359c450.zip gcc-bde6c65de1ecc893a1ac83a9d89aeb555359c450.tar.gz gcc-bde6c65de1ecc893a1ac83a9d89aeb555359c450.tar.bz2 |
tree-nested.c (build_addr): New "context" argument.
* tree-nested.c (build_addr): New "context" argument. Temporarily
set current_function_decl around the call to build the ADDR_EXPR.
(get_static_chain): Pass proper context to build_addr.
(convert_nl_goto_reference): Likewise.
(convert_tramp_reference): Likewise.
(final_nesting_tree_1): Likewise.
* tree-profile.c (tree_gen_interval_profiler): Likewise.
(tree_gen_pow2_profiler): Likewise.
(tree_gen_one_value_profiler): Likewise.
* tree-ssa-loop-ivopts.c (build_addr_strip_iref): Likewise.
* tree.h (build_addr): Update prototype.
From-SVN: r100110
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r-- | gcc/tree-profile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c index 2c91fc3..d611168 100644 --- a/gcc/tree-profile.c +++ b/gcc/tree-profile.c @@ -143,7 +143,7 @@ tree_gen_interval_profiler (histogram_value value, unsigned tag, unsigned base) tree steps = build_int_cst_type (unsigned_type_node, value->hdata.intvl.steps); ref_ptr = force_gimple_operand_bsi (&bsi, - build_addr (ref), + build_addr (ref, current_function_decl), true, NULL_TREE); val = prepare_instrumented_value (&bsi, value); args = tree_cons (NULL_TREE, ref_ptr, @@ -168,7 +168,7 @@ tree_gen_pow2_profiler (histogram_value value, unsigned tag, unsigned base) tree args, call, val; ref_ptr = force_gimple_operand_bsi (&bsi, - build_addr (ref), + build_addr (ref, current_function_decl), true, NULL_TREE); val = prepare_instrumented_value (&bsi, value); args = tree_cons (NULL_TREE, ref_ptr, @@ -191,7 +191,7 @@ tree_gen_one_value_profiler (histogram_value value, unsigned tag, unsigned base) tree args, call, val; ref_ptr = force_gimple_operand_bsi (&bsi, - build_addr (ref), + build_addr (ref, current_function_decl), true, NULL_TREE); val = prepare_instrumented_value (&bsi, value); args = tree_cons (NULL_TREE, ref_ptr, |