aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-low.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2004-06-30 11:11:14 -0700
committerPer Bothner <bothner@gcc.gnu.org>2004-06-30 11:11:14 -0700
commita281759fdf4cc20f179d37ef875f7c233ab68f46 (patch)
tree01829581c8eb09eede00ea3a28703fb4b3440dc5 /gcc/gimple-low.c
parent3c20847b8301eb9aa407ee8273b6e738e7067ee0 (diff)
downloadgcc-a281759fdf4cc20f179d37ef875f7c233ab68f46.zip
gcc-a281759fdf4cc20f179d37ef875f7c233ab68f46.tar.gz
gcc-a281759fdf4cc20f179d37ef875f7c233ab68f46.tar.bz2
Conditionally compile support for --enable-mapped_location.
* tree-mudflap.c (mf_file_function_line_tree): Take a location_t rather than a pointer to one. Use expand_location. (mf_varname_tree): Use expand_location. * tree-dump.c: Use expand_location on DECL_SOURCE_LOCATION. * coverage.c: Likewise. * print-tree.c: Likewise. * c-aux-info.c (gen_aux_info_record): Likewise. * c-parse.in: Use SET_EXPR_LOCATION macro. * gimple-low.c: Likewise. * tree-mudflap.c: Likewise. * gimplify.c: Likewise. Also use EXPR_LOCATION and EXPR_HAS_LOCATION. * c-ppoutput.c: Use new source_location typedef instead of fileline. * c-semantics.c: Use new macros. * c-typeck.c: Likewise. From-SVN: r83920
Diffstat (limited to 'gcc/gimple-low.c')
-rw-r--r--gcc/gimple-low.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/gimple-low.c b/gcc/gimple-low.c
index 32e5cee..f5ee15b 100644
--- a/gcc/gimple-low.c
+++ b/gcc/gimple-low.c
@@ -94,7 +94,7 @@ lower_function_body (void)
|| TREE_OPERAND (TREE_VALUE (data.return_statements), 0) != NULL))
{
x = build (RETURN_EXPR, void_type_node, NULL);
- annotate_with_locus (x, cfun->function_end_locus);
+ SET_EXPR_LOCATION (x, cfun->function_end_locus);
tsi_link_after (&i, x, TSI_CONTINUE_LINKING);
}
@@ -109,7 +109,11 @@ lower_function_body (void)
It now fills in for many such returns. Failure to remove this
will result in incorrect results for coverage analysis. */
x = TREE_VALUE (t);
+#ifdef USE_MAPPED_LOCATION
+ SET_EXPR_LOCATION (x, UNKNOWN_LOCATION);
+#else
SET_EXPR_LOCUS (x, NULL);
+#endif
tsi_link_after (&i, x, TSI_CONTINUE_LINKING);
}