diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2003-07-18 23:05:53 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2003-07-18 23:05:53 +0000 |
commit | eb8221eaf2af098bde30e07d72b354f1fbc35d32 (patch) | |
tree | e81f45be8f3697dff7a213072c4faf54291168c6 /gcc/c-objc-common.c | |
parent | 65f43cdfee83049bc0008c71b182e813c4c86306 (diff) | |
download | gcc-eb8221eaf2af098bde30e07d72b354f1fbc35d32.zip gcc-eb8221eaf2af098bde30e07d72b354f1fbc35d32.tar.gz gcc-eb8221eaf2af098bde30e07d72b354f1fbc35d32.tar.bz2 |
c-common.c: Don't undefine GCC_DIAG_STYLE.
* c-common.c: Don't undefine GCC_DIAG_STYLE.
(fname_decl): Don't use xxx_with_decl.
(c_add_case_label): Likewise.
(handle_section_attribute): Likewise.
(handle_alias_attribute): Likewise.
(handle_no_instrument_function_attribute): Likewise.
(handle_no_limit_stack_attribute): Likewise.
* c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
* c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
From-SVN: r69573
Diffstat (limited to 'gcc/c-objc-common.c')
-rw-r--r-- | gcc/c-objc-common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/c-objc-common.c b/gcc/c-objc-common.c index eacc719..0d44e1d 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; } |