aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2007-11-01 15:06:11 +0000
committerTom Tromey <tromey@gcc.gnu.org>2007-11-01 15:06:11 +0000
commit18aa09d19539fd8d1ca5337d1410e3e21d24a971 (patch)
treee6614c9944c4aeac788606f9e090c555f88f9b1c
parent611cd333cd03e3b44902223cd8f945a54e9ec843 (diff)
downloadgcc-18aa09d19539fd8d1ca5337d1410e3e21d24a971.zip
gcc-18aa09d19539fd8d1ca5337d1410e3e21d24a971.tar.gz
gcc-18aa09d19539fd8d1ca5337d1410e3e21d24a971.tar.bz2
* print-tree.c (print_node): Print column number.
From-SVN: r129821
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/print-tree.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a5c3a9e..68ec0ed 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-01 Tom Tromey <tromey@redhat.com>
+
+ * print-tree.c (print_node): Print column number.
+
2007-11-01 Jakub Jelinek <jakub@redhat.com>
PR debug/33537
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index 7f3c5a3..37c1007 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, ">");