Commit ad500466 by Per Bothner Committed by Per Bothner

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
parent 8af4d362
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> 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
* class.c, decl.c, expr.c: Fix comment typos. * class.c, decl.c, expr.c: Fix comment typos.
......
...@@ -3564,13 +3564,14 @@ build_expr_wfl (tree node, ...@@ -3564,13 +3564,14 @@ build_expr_wfl (tree node,
) )
{ {
tree wfl; tree wfl;
static const char *last_file = 0;
static tree last_filenode = NULL_TREE;
#ifdef USE_MAPPED_LOCATION #ifdef USE_MAPPED_LOCATION
wfl = make_node (EXPR_WITH_FILE_LOCATION); wfl = make_node (EXPR_WITH_FILE_LOCATION);
SET_EXPR_LOCATION (wfl, location); SET_EXPR_LOCATION (wfl, location);
#else #else
static const char *last_file = 0;
static tree last_filenode = NULL_TREE;
wfl = make_node (EXPR_WITH_FILE_LOCATION); wfl = make_node (EXPR_WITH_FILE_LOCATION);
EXPR_WFL_SET_LINECOL (wfl, line, col); EXPR_WFL_SET_LINECOL (wfl, line, col);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment