summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-04 19:35:23 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-04 19:35:23 +0000
commitc470c5a9c593390d0bf3f4a6004c136b99120545 (patch)
treeb3887b2fc44cec55b580768f354ae76eeb37fa87 /gcc/lto-streamer.h
parentee5a90d4400a2933babbea1fbf49543184368e7f (diff)
downloadgcc-c470c5a9c593390d0bf3f4a6004c136b99120545.tar.gz
PR tree-optimization/46760
* cgraph.c (cgraph_create_node): Initialize count_materialization_scale. * cgraph.h (struct cgraph_node): Add count_materialization_scale. * lto-cgraph.c (lto_output_edge): Fix assert. (lto_output_node): Output count_materialization_scale. (output_profile_summary): Output only runs and sum_max. (input_node): Input count_materialization_scale. (input_profile_summary): Read data into file specific gcov summary. (merge_profile_summaries): New function. (input_cgraph): Update call of input_profile_summary; call merge_profile_summaries. * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg; rescale counts at read in. (intput_bb): Likewise. (input_function): Update call of input_bb. (lto_read_body): Update call of input_cfg. * lto-streamer.h: Inlclude gcov-io.h (lto_file_decl_data): Add gcov_ctr_summary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167458 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer.h')
-rw-r--r--gcc/lto-streamer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h
index ee57ba744f6..b82c54ede1c 100644
--- a/gcc/lto-streamer.h
+++ b/gcc/lto-streamer.h
@@ -31,6 +31,7 @@ along with GCC; see the file COPYING3. If not see
#include "vec.h"
#include "vecprim.h"
#include "alloc-pool.h"
+#include "gcov-io.h"
/* Define when debugging the LTO streamer. This causes the writer
to output the numeric value for the memory address of the tree node
@@ -610,6 +611,8 @@ struct GTY(()) lto_file_decl_data
/* Symbol resolutions for this file */
VEC(ld_plugin_symbol_resolution_t,heap) * GTY((skip)) resolutions;
+
+ struct gcov_ctr_summary GTY((skip)) profile_info;
};
typedef struct lto_file_decl_data *lto_file_decl_data_ptr;