diff options
| author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-30 02:16:46 +0000 |
|---|---|---|
| committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-30 02:16:46 +0000 |
| commit | 784bf0a0896463245b1887df6ce4292048cca452 (patch) | |
| tree | fbb1057171256a79143187457974d34107bf3d8f /gcc/java/decl.c | |
| parent | 21f3b5b41252fc311cd8881d338d12a481cab219 (diff) | |
| download | ppe42-gcc-784bf0a0896463245b1887df6ce4292048cca452.tar.gz ppe42-gcc-784bf0a0896463245b1887df6ce4292048cca452.zip | |
* check-init.c (check_init): Handle USE_MAPPED_LOCATION case.
* decl.c (finish_method, java_add_stmt): Likewise.
* java-gimplify.c (java-gimplify.c): Likewise.
* jcf-write.c (generate_bytecode_insns): Likewise.
* lang.c (java_post_options): Likewise - call linemap_add.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88324 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/decl.c')
| -rw-r--r-- | gcc/java/decl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c index 573fa2c9b08..e10c9914869 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -1954,8 +1954,12 @@ finish_method (tree fndecl) cfun = DECL_STRUCT_FUNCTION (fndecl); else allocate_struct_function (fndecl); +#ifdef USE_MAPPED_LOCATION + cfun->function_end_locus = DECL_FUNCTION_LAST_LINE (fndecl); +#else cfun->function_end_locus.file = DECL_SOURCE_FILE (fndecl); cfun->function_end_locus.line = DECL_FUNCTION_LAST_LINE (fndecl); +#endif /* Defer inlining and expansion to the cgraph optimizers. */ cgraph_finalize_function (fndecl, false); @@ -2023,7 +2027,7 @@ tree java_add_stmt (tree stmt) { if (input_filename) - annotate_with_locus (stmt, input_location); + SET_EXPR_LOCATION (stmt, input_location); return current_binding_level->stmts = add_stmt_to_compound (current_binding_level->stmts, |

