[PATCH] Use correct section_type in input_cgraph_opt_section
Martin Jambor
mjambor@suse.cz
Wed Dec 29 14:20:00 GMT 2010
Hi,
the section type passed to lto_free_section_data in
input_cgraph_opt_section seems like it was copied from ipa-prop.c but
the section type was not changed afterwards as it should have been.
(If it is actually correct, it probably deserves a comment what is
going on.) At least there is no other trace in
LTO_section_jump_functions in lto-cgraph.c.
I'm currently bootstrapping and testing the following, OK if it
passes?
Thanks,
Martin
2010-12-29 Martin Jambor <mjambor@suse.cz>
* lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
Index: icln/gcc/lto-cgraph.c
===================================================================
--- icln.orig/gcc/lto-cgraph.c 2010-12-29 11:32:14.000000000 +0100
+++ icln/gcc/lto-cgraph.c 2010-12-29 11:32:18.000000000 +0100
@@ -1797,7 +1797,7 @@ input_cgraph_opt_section (struct lto_fil
input_node_opt_summary (VEC_index (cgraph_node_ptr, nodes, ref),
&ib_main, data_in);
}
- lto_free_section_data (file_data, LTO_section_jump_functions, NULL, data,
+ lto_free_section_data (file_data, LTO_section_cgraph_opt_sum, NULL, data,
len);
lto_data_in_delete (data_in);
}
More information about the Gcc-patches
mailing list