[PATCH][LTO] Fix some guality
Richard Guenther
rguenther@suse.de
Fri Sep 3 14:01:00 GMT 2010
This outputs the function start and end loci which allows breaking on
the lines the guality tries to.
Bootstrap and regtest running on x86_64-unknown-linux-gnu, will apply
once that succeeded.
Richard.
2010-09-03 Richard Guenther <rguenther@suse.de>
* lto-streamer-out.c (output_function): Output function
start and end loci.
* lto-streamer-in.c (input_function): Input function start
and end loci.
Index: gcc/lto-streamer-out.c
===================================================================
*** gcc/lto-streamer-out.c (revision 163811)
--- gcc/lto-streamer-out.c (working copy)
*************** output_function (struct cgraph_node *nod
*** 1917,1922 ****
--- 1917,1926 ----
bp_pack_value (&bp, fn->va_list_gpr_size, 8);
lto_output_bitpack (&bp);
+ /* Output the function start and end loci. */
+ lto_output_location (ob, fn->function_start_locus);
+ lto_output_location (ob, fn->function_end_locus);
+
/* Output current IL state of the function. */
output_uleb128 (ob, fn->curr_properties);
Index: gcc/lto-streamer-in.c
===================================================================
*** gcc/lto-streamer-in.c (revision 163811)
--- gcc/lto-streamer-in.c (working copy)
*************** input_function (tree fn_decl, struct dat
*** 1169,1174 ****
--- 1199,1208 ----
fn->va_list_fpr_size = bp_unpack_value (&bp, 8);
fn->va_list_gpr_size = bp_unpack_value (&bp, 8);
+ /* Input the function start and end loci. */
+ fn->function_start_locus = lto_input_location (ib, data_in);
+ fn->function_end_locus = lto_input_location (ib, data_in);
+
/* Input the current IL state of the function. */
fn->curr_properties = lto_input_uleb128 (ib);
More information about the Gcc-patches
mailing list