diff options
author | Martin Sebor <msebor@redhat.com> | 2021-07-06 14:13:31 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-07-06 14:14:25 -0600 |
commit | 4f6e181181a48c341e524653cae0885fd170131e (patch) | |
tree | 7add41289221a44a977803ded481637e102b9c52 /gcc/c/c-objc-common.c | |
parent | 62e43587ef1c874b62a6c4c5c3980969e4a2da97 (diff) | |
download | gcc-4f6e181181a48c341e524653cae0885fd170131e.zip gcc-4f6e181181a48c341e524653cae0885fd170131e.tar.gz gcc-4f6e181181a48c341e524653cae0885fd170131e.tar.bz2 |
Remove support for %G and %K.
gcc/c-family/ChangeLog:
* c-format.c (gcc_tdiag_char_table): Remove support for %G and %K.
(gcc_cdiag_char_table): Same.
(gcc_cxxdiag_char_table): Same.
gcc/c/ChangeLog:
* c-objc-common.c (c_tree_printer): Remove support for %G and %K.
gcc/cp/ChangeLog:
* error.c (cp_printer): Remove support for %G and %K.
gcc/ChangeLog:
* gimple-pretty-print.c (percent_G_format): Remove.
* tree-diagnostic.c (default_tree_printer): Remove calls.
* tree-pretty-print.c (percent_K_format): Remove.
* tree-pretty-print.h (percent_K_format): Remove.
gcc/testsuite/ChangeLog:
* gcc.dg/format/gcc_diag-10.c: Update expected warnings.
* gcc.dg/plugin/diagnostic_plugin_test_inlining.c: Remove %G.
Diffstat (limited to 'gcc/c/c-objc-common.c')
-rw-r--r-- | gcc/c/c-objc-common.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/c/c-objc-common.c b/gcc/c/c-objc-common.c index b945de1..cdb2242 100644 --- a/gcc/c/c-objc-common.c +++ b/gcc/c/c-objc-common.c @@ -247,8 +247,6 @@ print_type (c_pretty_printer *cpp, tree t, bool *quoted) %D: a general decl, %E: an identifier or expression, %F: a function declaration, - %G: a Gimple statement, - %K: a CALL_EXPR, %T: a type. %V: a list of type qualifiers from a tree. %v: an explicit list of type qualifiers @@ -269,19 +267,6 @@ c_tree_printer (pretty_printer *pp, text_info *text, const char *spec, if (precision != 0 || wide) return false; - if (*spec == 'G') - { - percent_G_format (text); - return true; - } - - if (*spec == 'K') - { - t = va_arg (*text->args_ptr, tree); - percent_K_format (text, EXPR_LOCATION (t), TREE_BLOCK (t)); - return true; - } - if (*spec != 'v') { t = va_arg (*text->args_ptr, tree); |