expr.c (build_expr_wfl): Only declare last_file and last_filenode local static variab...
authorPer Bothner <per@bothner.com>
Sun, 28 Nov 2004 06:44:20 +0000 (22:44 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Sun, 28 Nov 2004 06:44:20 +0000 (22:44 -0800)
* expr.c (build_expr_wfl): Only declare last_file and last_filenode
local static variables if not USE_MAPPED_LOCATION.

From-SVN: r91408

gcc/java/ChangeLog
gcc/java/expr.c

index 43bdf68..0d65ea1 100644 (file)
@@ -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.
index 9df841b..fdc8ae6 100644 (file)
@@ -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);