diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-01 15:06:11 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-01 15:06:11 +0000 |
commit | 4caff2085622c6813fdbfa4b6a1041f097121454 (patch) | |
tree | e6614c9944c4aeac788606f9e090c555f88f9b1c /gcc/print-tree.c | |
parent | 73bcd2ba3bd598b98b448ed7f46c9e35fbde1c42 (diff) | |
download | gcc-4caff2085622c6813fdbfa4b6a1041f097121454.tar.gz |
* print-tree.c (print_node): Print column number.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129821 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r-- | gcc/print-tree.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c index 7f3c5a35ac0..37c10078602 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -443,6 +443,9 @@ print_node (FILE *file, const char *prefix, tree node, int indent) xloc = expand_location (DECL_SOURCE_LOCATION (node)); fprintf (file, " file %s line %d", xloc.file, xloc.line); +#ifdef USE_MAPPED_LOCATION + fprintf (file, " col %d", xloc.column); +#endif if (CODE_CONTAINS_STRUCT (code, TS_DECL_COMMON)) { @@ -932,6 +935,9 @@ print_node (FILE *file, const char *prefix, tree node, int indent) expanded_location xloc = expand_location (EXPR_LOCATION (node)); indent_to (file, indent+4); fprintf (file, "%s:%d", xloc.file, xloc.line); +#ifdef USE_MAPPED_LOCATION + fprintf (file, ":%d", xloc.column); +#endif } fprintf (file, ">"); |