* print-tree.c (print_node): Print column number.
authorTom Tromey <tromey@redhat.com>
Thu, 1 Nov 2007 15:06:11 +0000 (15:06 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 1 Nov 2007 15:06:11 +0000 (15:06 +0000)
From-SVN: r129821

gcc/ChangeLog
gcc/print-tree.c

index a5c3a9ec5f5643958b08f491c9ac4bf7e5043a54..68ec0edc3b2fbc9f54020abbf96329e106b6eb93 100644 (file)
@@ -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
index 7f3c5a35ac08f1b12d393a21e54e9dce11e2e03b..37c100786029a2cd3957dff5bd3fdb40485544cc 100644 (file)
@@ -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, ">");