summaryrefslogtreecommitdiff
path: root/gcc/c-dump.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-30 18:05:07 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-30 18:05:07 +0000
commit9a6486a6df3ead668aa9b95d72491fba067e7c03 (patch)
tree3a5eb1a7eff65640bfe8d3933a6c06578d9f38ce /gcc/c-dump.c
parentfdfe4b3faa360051a0d3ee834c141c8ee5f64e06 (diff)
downloadgcc-9a6486a6df3ead668aa9b95d72491fba067e7c03.tar.gz
Conditionally compile support for --enable-mapped_location.
* basic-block.h (struct edge_def): Use new source_locus typedef. * c-common.c (fname_decl): Update save/clear/store of input_location. (c_do_switch_warnings): Update for USE_MAPPED_LOCATION case. * c-decl.c: Likewise. * c-dump.c (dump_stmt): Likewise. * c-gimplify.c (c-gimplify.c): Generalize using SET_EXPR_LOCATION. * c-lex.c (cb_line_change): If USE_MAPPED_LOCATION use token's src_loc to set input_location direction, rather than using linemap_lookup. (fe_file_change, cb_def_pragma): Again use source_location directly. * c-opts.c (saved_lineno): Remove static variable. (c_common_post_options, c_common_init): Don't bothner to save, clear and restore input_Location - now handled by lang_dependent_init. * function.c (init_function_start): Use new DECL_IS_BUILTIN macro. * xcoffout.c (xcoff_assign_fundamental_type_number): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83919 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-dump.c')
-rw-r--r--gcc/c-dump.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/c-dump.c b/gcc/c-dump.c
index 73b973e235a..006759f9fa2 100644
--- a/gcc/c-dump.c
+++ b/gcc/c-dump.c
@@ -32,9 +32,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
void
dump_stmt (dump_info_p di, tree t)
{
- location_t *locus = EXPR_LOCUS (t);
- if (locus)
- dump_int (di, "line", locus->line);
+ if (EXPR_HAS_LOCATION (t))
+ dump_int (di, "line", EXPR_LINENO (t));
}
/* Dump any C-specific tree codes and attributes of common codes. */