diff options
author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-30 18:11:14 +0000 |
---|---|---|
committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-30 18:11:14 +0000 |
commit | 2ed8b5d0fb02aeec25a8ff7cd1e48f2fafbf45f3 (patch) | |
tree | 01829581c8eb09eede00ea3a28703fb4b3440dc5 /gcc/c-semantics.c | |
parent | 9a6486a6df3ead668aa9b95d72491fba067e7c03 (diff) | |
download | gcc-2ed8b5d0fb02aeec25a8ff7cd1e48f2fafbf45f3.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83920 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index 9512947216c..f164c9596ed 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -132,8 +132,8 @@ add_stmt (tree t) if ((EXPR_P (t) || STATEMENT_CODE_P (code)) && code != LABEL_EXPR) { - if (!EXPR_LOCUS (t)) - annotate_with_locus (t, input_location); + if (!EXPR_HAS_LOCATION (t)) + SET_EXPR_LOCATION (t, input_location); /* When we expand a statement-tree, we must know whether or not the statements are full-expressions. We record that fact here. */ @@ -149,7 +149,7 @@ add_stmt (tree t) /* Build a generic statement based on the given type of node and arguments. Similar to `build_nt', except that we set - EXPR_LOCUS to be the current source location. */ + EXPR_LOCATION to be the current source location. */ /* ??? This should be obsolete with the lineno_stmt productions in the grammar. */ @@ -166,7 +166,7 @@ build_stmt (enum tree_code code, ...) ret = make_node (code); TREE_TYPE (ret) = void_type_node; length = TREE_CODE_LENGTH (code); - annotate_with_locus (ret, input_location); + SET_EXPR_LOCATION (ret, input_location); /* Most statements have implicit side effects all on their own, such as control transfer. For those that do, we'll compute |