aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSimon Baldwin <simonb@google.com>2009-04-17 21:30:22 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2009-04-17 17:30:22 -0400
commit4e53d196cc0400d7cd1b90804987be4f14d6e2f1 (patch)
treedabc47b3a779379c931c745897d84fd367eeada2 /gcc
parent413d3aa89dcc0d6089fd10185842d4b72b3c21e6 (diff)
downloadgcc-4e53d196cc0400d7cd1b90804987be4f14d6e2f1.zip
gcc-4e53d196cc0400d7cd1b90804987be4f14d6e2f1.tar.gz
gcc-4e53d196cc0400d7cd1b90804987be4f14d6e2f1.tar.bz2
toplev.c (default_tree_printer): Add handling for %E format.
2009-04-17 Simon Baldwin <simonb@google.com> * toplev.c (default_tree_printer): Add handling for %E format. From-SVN: r146294
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/toplev.c9
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 919002b..6a1c1a7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/toplev.c b/gcc/toplev.c
index bd709fc..4c6efbc 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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))