summaryrefslogtreecommitdiffstats
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-28 06:44:20 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-28 06:44:20 +0000
commitfccae495ebc0523270fc941fc76f69d05b7870ab (patch)
tree5ae8ebb466e9e12e3fd55604d93fb2e7956b0db1 /gcc/java/expr.c
parentcd0c3d248bbe4b18d1f85082621b5da0c882c0dd (diff)
downloadppe42-gcc-fccae495ebc0523270fc941fc76f69d05b7870ab.tar.gz
ppe42-gcc-fccae495ebc0523270fc941fc76f69d05b7870ab.zip
* expr.c (build_expr_wfl): Only declare last_file and last_filenode
local static variables if not USE_MAPPED_LOCATION. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91408 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r--gcc/java/expr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 9df841b058f..fdc8ae69ce6 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);
OpenPOWER on IntegriCloud