diff options
Diffstat (limited to 'gcc/c-objc-common.c')
-rw-r--r-- | gcc/c-objc-common.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gcc/c-objc-common.c b/gcc/c-objc-common.c index 277e97b..fccc263 100644 --- a/gcc/c-objc-common.c +++ b/gcc/c-objc-common.c @@ -1,6 +1,6 @@ /* Some code common to C and ObjC front ends. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, - 2009 Free Software Foundation, Inc. + 2009, 2010 Free Software Foundation, Inc. This file is part of GCC. @@ -27,6 +27,7 @@ along with GCC; see the file COPYING3. If not see #include "c-pretty-print.h" #include "flags.h" #include "diagnostic.h" +#include "tree-pretty-print.h" #include "langhooks.h" #include "c-objc-common.h" @@ -87,7 +88,7 @@ static bool c_tree_printer (pretty_printer *pp, text_info *text, const char *spec, int precision, bool wide, bool set_locus, bool hash) { - tree t = va_arg (*text->args_ptr, tree); + tree t; tree name; c_pretty_printer *cpp = (c_pretty_printer *) pp; pp->padding = pp_none; @@ -95,6 +96,14 @@ c_tree_printer (pretty_printer *pp, text_info *text, const char *spec, if (precision != 0 || wide || hash) return false; + if (*spec == 'K') + { + percent_K_format (text); + return true; + } + + t = va_arg (*text->args_ptr, tree); + if (set_locus && text->locus) *text->locus = DECL_SOURCE_LOCATION (t); |