aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@gcc.gnu.org>2019-12-10 17:54:41 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2019-12-10 17:54:41 +0000
commit59c7b29e9a5b3a692efae81541985be800cdbf0c (patch)
treef2bb1ec7b0e6ac6ba92cb44f3193d2a12f761625 /gcc/lto
parent066564270000d608114fdea89cfbf58c69f68845 (diff)
downloadgcc-59c7b29e9a5b3a692efae81541985be800cdbf0c.zip
gcc-59c7b29e9a5b3a692efae81541985be800cdbf0c.tar.gz
gcc-59c7b29e9a5b3a692efae81541985be800cdbf0c.tar.bz2
Turn tp_first_run counts back to 32bit values.
* cgraph.c (cgraph_node::verify_node): Verify tp_first_run. * cgraph.h (cgrpah_node): Turn tp_first_run back to int. * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows. (expand_all_functions): First expand ordered section and then unordered. * lto-partition.c (lto_balanced_map): Fix printing of tp_first_run. * profile.c (compute_value_histograms): Error on out of range tp_first_runs. From-SVN: r279178
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog7
-rw-r--r--gcc/lto/lto-partition.c8
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index d80b2bd..9f974af 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,11 +1,16 @@
2019-12-07 Jan Hubicka <hubicka@ucw.cz>
+ * lto-partition.c (lto_balanced_map): Fix printing of tp_first_run.
+
+2019-12-10 Jan Hubicka <hubicka@ucw.cz>
+
* lto-partition.c (node_cmp): Turn into simple order comparsions.
(varpool_node_cmp): Remove.
(add_sorted_nodes): Use node_cmp.
(lto_balanced_map): Use tp_first_run_node_cmp.
-/bin/bash: :q: command not found
+2019-11-25 Joseph Myers <joseph@codesourcery.com>
+
PR c/91985
* lto-lang.c (lto_type_for_mode): Handle decimal floating-point
types being NULL_TREE.
diff --git a/gcc/lto/lto-partition.c b/gcc/lto/lto-partition.c
index 4da7650..3c67b8a 100644
--- a/gcc/lto/lto-partition.c
+++ b/gcc/lto/lto-partition.c
@@ -514,11 +514,11 @@ lto_balanced_map (int n_lto_partitions, int max_partition_size)
if (dump_file)
{
for (unsigned i = 0; i < order.length (); i++)
- fprintf (dump_file, "Balanced map symbol order:%s:%" PRId64 "\n",
- order[i]->name (), (int64_t) order[i]->tp_first_run);
+ fprintf (dump_file, "Balanced map symbol order:%s:%u\n",
+ order[i]->name (), order[i]->tp_first_run);
for (unsigned i = 0; i < noreorder.length (); i++)
- fprintf (dump_file, "Balanced map symbol no_reorder:%s:%" PRId64 "\n",
- noreorder[i]->name (), (int64_t) noreorder[i]->tp_first_run);
+ fprintf (dump_file, "Balanced map symbol no_reorder:%s:%u\n",
+ noreorder[i]->name (), noreorder[i]->tp_first_run);
}
/* Collect all variables that should not be reordered. */