projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afbcdf5
)
* lto.c (lto_balanced_map): Do not produce empty partitions.
author
Jan Hubicka
<jh@suse.cz>
Thu, 7 Oct 2010 11:18:28 +0000
(13:18 +0200)
committer
Jan Hubicka
<hubicka@gcc.gnu.org>
Thu, 7 Oct 2010 11:18:28 +0000
(11:18 +0000)
From-SVN: r165093
gcc/lto/ChangeLog
patch
|
blob
|
history
gcc/lto/lto.c
patch
|
blob
|
history
diff --git
a/gcc/lto/ChangeLog
b/gcc/lto/ChangeLog
index
2bce315
..
fbe447f
100644
(file)
--- a/
gcc/lto/ChangeLog
+++ b/
gcc/lto/ChangeLog
@@
-1,3
+1,7
@@
+2010-10-06 Jan Hubicka <jh@suse.cz>
+
+ * lto.c (lto_balanced_map): Do not produce empty partitions.
+
2010-10-06 Andi Kleen <ak@linux.intel.com>
* lto.c (lto_process_name): Add.
diff --git
a/gcc/lto/lto.c
b/gcc/lto/lto.c
index
12fa613
..
25280a7
100644
(file)
--- a/
gcc/lto/lto.c
+++ b/
gcc/lto/lto.c
@@
-1212,6
+1212,9
@@
lto_balanced_map (void)
undo_partition (partition, best_n_nodes, best_n_varpool_nodes);
}
i = best_i;
+ /* When we are finished, avoid creating empty partition. */
+ if (i == n_nodes - 1)
+ break;
partition = new_partition ("");
last_visited_cgraph_node = 0;
last_visited_varpool_node = 0;