Message ID | 20101007111533.GB5152@kam.mff.cuni.cz |
---|---|
State | New |
Headers | show |
Index: lto/lto.c =================================================================== --- lto/lto.c (revision 165087) +++ lto/lto.c (working copy) @@ -1212,6 +1208,9 @@ 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;