diff options
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/lto/lto.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 2652a284f43..d2bb78e0799 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2010-08-20 Nathan Froyd <froydnj@codesourcery.com> + + * lto.c: Use FOR_EACH_VEC_ELT. + 2010-07-27 Andi Kleen <ak@linux.intel.com> * Make-lang.in (lto.o): Add dependency to splay-tree.h diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index e4ee214f622..84a6e28e1a1 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -1063,7 +1063,7 @@ lto_wpa_write_files (void) compiled by LTRANS. After this loop, only those sets that contain callgraph nodes from more than one file will need to be compiled by LTRANS. */ - for (i = 0; VEC_iterate (ltrans_partition, ltrans_partitions, i, part); i++) + FOR_EACH_VEC_ELT (ltrans_partition, ltrans_partitions, i, part) lto_stats.num_output_cgraph_nodes += VEC_length (cgraph_node_ptr, part->cgraph_set->nodes); @@ -1592,7 +1592,7 @@ lto_fixup_decls (struct lto_file_decl_data **files) htab_traverse (file->function_decl_states, lto_fixup_state_aux, &data); } - for (i = 0; VEC_iterate (tree, lto_global_var_decls, i, decl); i++) + FOR_EACH_VEC_ELT (tree, lto_global_var_decls, i, decl) { tree saved_decl = decl; walk_tree (&decl, lto_fixup_tree, &data, NULL); @@ -1892,7 +1892,7 @@ materialize_cgraph (void) set_cfun (NULL); /* Inform the middle end about the global variables we have seen. */ - for (i = 0; VEC_iterate (tree, lto_global_var_decls, i, decl); i++) + FOR_EACH_VEC_ELT (tree, lto_global_var_decls, i, decl) rest_of_decl_compilation (decl, 1, 0); if (!quiet_flag) |