diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2008-09-09 10:56:23 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2008-09-09 10:56:23 +0000 |
commit | 1751ecd619cd564d1e1b0c203c9ae65c75c7c216 (patch) | |
tree | 166fffc125acbefeaadfe937a4ae5c5e18d0c996 /gcc/c-parser.c | |
parent | a135b1c41c63e75ad1b8d74345eca520e973e2f9 (diff) | |
download | gcc-1751ecd619cd564d1e1b0c203c9ae65c75c7c216.zip gcc-1751ecd619cd564d1e1b0c203c9ae65c75c7c216.tar.gz gcc-1751ecd619cd564d1e1b0c203c9ae65c75c7c216.tar.bz2 |
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/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index b7f3a17..43ef655 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -1301,9 +1301,9 @@ c_parser_declaration_or_fndef (c_parser *parser, bool fndef_ok, bool empty_ok, while (c_parser_next_token_is_not (parser, CPP_EOF) && c_parser_next_token_is_not (parser, CPP_OPEN_BRACE)) c_parser_declaration_or_fndef (parser, false, false, true, false); - DECL_SOURCE_LOCATION (current_function_decl) - = c_parser_peek_token (parser)->location; store_parm_decls (); + DECL_STRUCT_FUNCTION (current_function_decl)->function_start_locus + = c_parser_peek_token (parser)->location; fnbody = c_parser_compound_statement (parser); if (nested) { |