aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2004-11-27 22:44:20 -0800
committerPer Bothner <bothner@gcc.gnu.org>2004-11-27 22:44:20 -0800
commitad50046692fd8a85219e5889f59ab03b0d006f1f (patch)
tree5ae8ebb466e9e12e3fd55604d93fb2e7956b0db1 /gcc/java
parent8af4d362c20fa06c560a3c0f3b281ffa5297e044 (diff)
downloadgcc-ad50046692fd8a85219e5889f59ab03b0d006f1f.zip
gcc-ad50046692fd8a85219e5889f59ab03b0d006f1f.tar.gz
gcc-ad50046692fd8a85219e5889f59ab03b0d006f1f.tar.bz2
expr.c (build_expr_wfl): Only declare last_file and last_filenode local static variables if...
* expr.c (build_expr_wfl): Only declare last_file and last_filenode local static variables if not USE_MAPPED_LOCATION. From-SVN: r91408
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/expr.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 43bdf68..0d65ea1 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-27 Per Bothner <per@bothner.com>
+
+ * expr.c (build_expr_wfl): Only declare last_file and last_filenode
+ local static variables if not USE_MAPPED_LOCATION.
+
2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
* class.c, decl.c, expr.c: Fix comment typos.
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 9df841b..fdc8ae6 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -3564,13 +3564,14 @@ build_expr_wfl (tree node,
)
{
tree wfl;
- static const char *last_file = 0;
- static tree last_filenode = NULL_TREE;
#ifdef USE_MAPPED_LOCATION
wfl = make_node (EXPR_WITH_FILE_LOCATION);
SET_EXPR_LOCATION (wfl, location);
#else
+ static const char *last_file = 0;
+ static tree last_filenode = NULL_TREE;
+
wfl = make_node (EXPR_WITH_FILE_LOCATION);
EXPR_WFL_SET_LINECOL (wfl, line, col);