diff options
author | Martin Liska <mliska@suse.cz> | 2016-11-07 09:57:44 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-11-07 08:57:44 +0000 |
commit | 5bcb571cb2f5ee77f563d872d056a4565b8d2fc4 (patch) | |
tree | 36adb52c43b15ebaea54a5e88435362b2f9185af /gcc/tree-profile.c | |
parent | 29afecdf1b14136640f1d88da0e10751dbc6283c (diff) | |
download | gcc-5bcb571cb2f5ee77f563d872d056a4565b8d2fc4.zip gcc-5bcb571cb2f5ee77f563d872d056a4565b8d2fc4.tar.gz gcc-5bcb571cb2f5ee77f563d872d056a4565b8d2fc4.tar.bz2 |
time_profiler: Set proper type to time_profiler_counter_ptr.
* tree-profile.c (gimple_gen_time_profiler): Set proper type
to time_profiler_counter_ptr.
From-SVN: r241894
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r-- | gcc/tree-profile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c index 09a702f..d18b954 100644 --- a/gcc/tree-profile.c +++ b/gcc/tree-profile.c @@ -489,8 +489,9 @@ gimple_gen_time_profiler (unsigned tag, unsigned base) /* Emit: counters[0] = ++__gcov_time_profiler_counter. */ if (flag_profile_update == PROFILE_UPDATE_ATOMIC) { - tree ptr = make_temp_ssa_name (type, NULL, "time_profiler_counter_ptr"); - tree addr = build1 (ADDR_EXPR, build_pointer_type (type), + tree ptr = make_temp_ssa_name (build_pointer_type (type), NULL, + "time_profiler_counter_ptr"); + tree addr = build1 (ADDR_EXPR, TREE_TYPE (ptr), tree_time_profiler_counter); gassign *assign = gimple_build_assign (ptr, NOP_EXPR, addr); gsi_insert_before (&gsi, assign, GSI_NEW_STMT); |