diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-24 20:19:13 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-24 20:19:13 +0000 |
commit | d2024a0d4bf5213b6b53d77335feb52954bd7a1b (patch) | |
tree | 929883b632ad4304f0f6c62c4f887885e3a41afc /gcc/tree-profile.c | |
parent | 7e6077637c9f5bedb073c6ce4346f82cfd80cb32 (diff) | |
download | gcc-d2024a0d4bf5213b6b53d77335feb52954bd7a1b.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100110 138bc75d-0d04-0410-961f-82ee72b054a4
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 2c91fc3859f..d611168635e 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, |