Commit 176a0aad by Per Bothner Committed by Per Bothner

decl.c (finish_function): Use SET_EXPR_LOCATION instead of unavailable annotate_with_file_line...


	* decl.c (finish_function): Use SET_EXPR_LOCATION instead of
	unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.

From-SVN: r95772
parent 58a30fef
2005-03-01 Per Bothner <per@bothner.com>
* decl.c (finish_function): Use SET_EXPR_LOCATION instead of
unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
2005-03-01 Nathan Sidwell <nathan@codesourcery.com>
PR c++/20232
......
......@@ -10593,7 +10593,11 @@ finish_function (int flags)
/* Hack. We don't want the middle-end to warn that this
return is unreachable, so put the statement on the
special line 0. */
#ifdef USE_MAPPED_LOCATION
SET_EXPR_LOCATION (stmt, UNKNOWN_LOCATION);
#else
annotate_with_file_line (stmt, input_filename, 0);
#endif
}
/* Finish dealing with exception specifiers. */
......
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