diff options
author | Per Bothner <per@bothner.com> | 2004-09-29 19:16:46 -0700 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2004-09-29 19:16:46 -0700 |
commit | de39930392eda3a8a298e70d07f997eba84c5afe (patch) | |
tree | fbb1057171256a79143187457974d34107bf3d8f /gcc/java/java-gimplify.c | |
parent | d68acc044e8b214f490718612e1c2d1a122813eb (diff) | |
download | gcc-de39930392eda3a8a298e70d07f997eba84c5afe.zip gcc-de39930392eda3a8a298e70d07f997eba84c5afe.tar.gz gcc-de39930392eda3a8a298e70d07f997eba84c5afe.tar.bz2 |
check-init.c (check_init): Handle USE_MAPPED_LOCATION case.
* 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.
From-SVN: r88324
Diffstat (limited to 'gcc/java/java-gimplify.c')
-rw-r--r-- | gcc/java/java-gimplify.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/java/java-gimplify.c b/gcc/java/java-gimplify.c index 664eb9a..c8130a7 100644 --- a/gcc/java/java-gimplify.c +++ b/gcc/java/java-gimplify.c @@ -69,10 +69,14 @@ java_gimplify_expr (tree *expr_p, tree *pre_p ATTRIBUTE_UNUSED, break; case EXPR_WITH_FILE_LOCATION: +#ifdef USE_MAPPED_LOCATION + input_location = EXPR_LOCATION (*expr_p); +#else input_location.file = EXPR_WFL_FILENAME (*expr_p); input_location.line = EXPR_WFL_LINENO (*expr_p); +#endif *expr_p = EXPR_WFL_NODE (*expr_p); - annotate_with_locus (*expr_p, input_location); + SET_EXPR_LOCATION (*expr_p, input_location); break; case CASE_EXPR: |