summaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2008-09-09 10:56:23 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2008-09-09 10:56:23 +0000
commit1751ecd619cd564d1e1b0c203c9ae65c75c7c216 (patch)
tree166fffc125acbefeaadfe937a4ae5c5e18d0c996 /gcc/function.h
parenta135b1c41c63e75ad1b8d74345eca520e973e2f9 (diff)
downloadgcc-1751ecd619cd564d1e1b0c203c9ae65c75c7c216.tar.gz
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
Diffstat (limited to 'gcc/function.h')
-rw-r--r--gcc/function.h3
1 files changed, 3 insertions, 0 deletions
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;