summaryrefslogtreecommitdiff
path: root/gcc/c-objc-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-objc-common.c')
-rw-r--r--gcc/c-objc-common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/c-objc-common.c b/gcc/c-objc-common.c
index eacc719bdec..0d44e1d883b 100644
--- a/gcc/c-objc-common.c
+++ b/gcc/c-objc-common.c
@@ -407,6 +407,7 @@ c_objc_common_finish_file (void)
source-level entity onto BUFFER. The meaning of the format specifiers
is as follows:
%D: a general decl,
+ %E: An expression,
%F: a function declaration,
%T: a type.
@@ -432,6 +433,14 @@ c_tree_printer (output_buffer *buffer, text_info *text)
}
return true;
+ case 'E':
+ if (TREE_CODE (t) == IDENTIFIER_NODE)
+ {
+ output_add_string (buffer, IDENTIFIER_POINTER (t));
+ return true;
+ }
+ return false;
+
default:
return false;
}