From ac364a48dba28a7ff62730bad2d1cde92b694607 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 3 Sep 2010 14:08:14 +0000 Subject: [PATCH] lto-streamer-out.c (output_function): Output function start and end loci. 2010-09-03 Richard Guenther * lto-streamer-out.c (output_function): Output function start and end loci. * lto-streamer-in.c (input_function): Input function start and end loci. From-SVN: r163818 --- gcc/ChangeLog | 7 +++++++ gcc/lto-streamer-in.c | 4 ++++ gcc/lto-streamer-out.c | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d64260d..f39998a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2010-09-03 Richard Guenther + + * lto-streamer-out.c (output_function): Output function + start and end loci. + * lto-streamer-in.c (input_function): Input function start + and end loci. + 2010-09-03 Andreas Krebbel * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro. diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index 14d87ed..870df2a 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -1169,6 +1169,10 @@ input_function (tree fn_decl, struct data_in *data_in, 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); diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index 80d818c..e4ad1c9 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -1917,6 +1917,10 @@ output_function (struct cgraph_node *node) 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); -- 2.7.4