From 1751ecd619cd564d1e1b0c203c9ae65c75c7c216 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Tue, 9 Sep 2008 10:56:23 +0000 Subject: function.h (struct function): Add function_start_locus. * function.h (struct function): Add function_start_locus. * cfgexpand.c (gimple_expand_cfg): Use it. * c-parser.c (c_parser_declaration_or_fndef): Set it. testsuite/ * gcc.dg/always_inline.c: Place error message on function name line. * gcc.dg/winline-6.c: Same. * gcc.dg/noreturn-1.c: Same. * gcc.dg/noreturn-7.c: Same. * gcc.dg/inline-14.c: Same. * gcc.dg/always_inline3.c: Same. * gcc.dg/winline-3.c: Same. * gcc.dg/wtr-func-def-1.c: Same. * gcc.dg/winline-5.c: Same. * gcc.dg/winline-7.c: Same. * gcc.dg/winline-9.c: Same. * gcc.dg/noreturn-4.c: Same. * gcc.dg/20041213-1.c: Use column numbers. From-SVN: r140144 --- gcc/function.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/function.h') diff --git a/gcc/function.h b/gcc/function.h index eb85e3c37af..e6214b3ae6f 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -527,6 +527,9 @@ struct function GTY(()) /* Last statement uid. */ int last_stmt_uid; + /* Line number of the start of the function for debugging purposes. */ + location_t function_start_locus; + /* Line number of the end of the function. */ location_t function_end_locus; -- cgit v1.2.1