aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/check-init.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2004-09-29 19:16:46 -0700
committerPer Bothner <bothner@gcc.gnu.org>2004-09-29 19:16:46 -0700
commitde39930392eda3a8a298e70d07f997eba84c5afe (patch)
treefbb1057171256a79143187457974d34107bf3d8f /gcc/java/check-init.c
parentd68acc044e8b214f490718612e1c2d1a122813eb (diff)
downloadgcc-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/check-init.c')
-rw-r--r--gcc/java/check-init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/java/check-init.c b/gcc/java/check-init.c
index 3ec8d64..be04851 100644
--- a/gcc/java/check-init.c
+++ b/gcc/java/check-init.c
@@ -879,8 +879,12 @@ check_init (tree exp, words before)
if (IS_EMPTY_STMT (body))
break;
wfl = exp;
+#ifdef USE_MAPPED_LOCATION
+ input_location = EXPR_LOCATION (exp);
+#else
input_filename = EXPR_WFL_FILENAME (exp);
input_line = EXPR_WFL_LINENO (exp);
+#endif
check_init (body, before);
input_location = saved_location;
wfl = saved_wfl;