summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-17 21:30:22 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-17 21:30:22 +0000
commit132cae052ceb4556303898b4bfb854b6a4329e6b (patch)
treedabc47b3a779379c931c745897d84fd367eeada2 /gcc/toplev.c
parentc6934f8a4cb3f7e899efcd5a793a1f4632fce7b6 (diff)
downloadgcc-132cae052ceb4556303898b4bfb854b6a4329e6b.tar.gz
2009-04-17 Simon Baldwin <simonb@google.com>
* toplev.c (default_tree_printer): Add handling for %E format. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146294 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index bd709fc2dce..4c6efbcb59b 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))