]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
toplev.c (default_tree_printer): Add handling for %E format.
authorSimon Baldwin <simonb@google.com>
Fri, 17 Apr 2009 21:30:22 +0000 (21:30 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Fri, 17 Apr 2009 21:30:22 +0000 (17:30 -0400)
2009-04-17  Simon Baldwin  <simonb@google.com>

* toplev.c (default_tree_printer): Add handling for %E format.

From-SVN: r146294

gcc/ChangeLog
gcc/toplev.c

index 919002b70aec516e0851f521a9103b33ed1aba7b..6a1c1a78e708b77341ec8ee742159e3604d05159 100644 (file)
@@ -1,3 +1,7 @@
+2009-04-17  Simon Baldwin  <simonb@google.com>
+
+       * toplev.c (default_tree_printer): Add handling for %E format.
+
 2009-04-17  Diego Novillo  <dnovillo@google.com>
 
        * tree-pretty-print.c (dump_generic_node): Add break
index bd709fc2dce98315834fe92bda56de4c5874564d..4c6efbcb59bc3242f472784fbc799a93c5514e42 100644 (file)
@@ -1508,6 +1508,15 @@ default_tree_printer (pretty_printer * pp, text_info *text, const char *spec,
 
   switch (*spec)
     {
+    case 'E':
+      t = va_arg (*text->args_ptr, tree);
+      if (TREE_CODE (t) == IDENTIFIER_NODE)
+       {
+         pp_string (pp, IDENTIFIER_POINTER (t));
+         return true;
+       }
+      break;
+
     case 'D':
       t = va_arg (*text->args_ptr, tree);
       if (DECL_DEBUG_EXPR_IS_FROM (t) && DECL_DEBUG_EXPR (t))