aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.h
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2017-08-14 18:35:13 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2017-08-14 12:35:13 -0600
commitda67acb9b37cf139da014f5bc11e2dbf25a7d597 (patch)
treed3cc608c3e0c1104bf054ef4e742c6af1439c24f /gcc/tree-pretty-print.h
parent9e3b1778b6207a10f2f1534fc9f01e6c8320a1dc (diff)
downloadgcc-da67acb9b37cf139da014f5bc11e2dbf25a7d597.zip
gcc-da67acb9b37cf139da014f5bc11e2dbf25a7d597.tar.gz
gcc-da67acb9b37cf139da014f5bc11e2dbf25a7d597.tar.bz2
PR c/81117 - Improve buffer overflow checking in strncpy - part 1
gcc/ChangeLog: PR c/81117 * tree-diagnostic.c (default_tree_printer): Handle %G. * gimple-pretty-print.h (percent_G_format): Declare new function. * gimple-pretty-print.c (percent_G_format): Define. * tree-pretty-print.c (percent_K_format): Add argument. gcc/c/ChangeLog: PR c/81117 * c-objc-common.c (c_objc_common_init): Handle 'G'. gcc/c-family/ChangeLog: PR c/81117 * c-format.h (T89_G): New macro. * c-format.c (local_gcall_ptr_node): New variable. (init_dynamic_diag_info): Initialize it. gcc/cp/ChangeLog: PR c/81117 * error.c (cp_printer): Handle 'G'. gcc/testsuite/ChangeLog: PR c/81117 * gcc.dg/format/gcc_diag-10.c: Exercise %G. From-SVN: r251098
Diffstat (limited to 'gcc/tree-pretty-print.h')
-rw-r--r--gcc/tree-pretty-print.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-pretty-print.h b/gcc/tree-pretty-print.h
index 07270b7..d17c5a5 100644
--- a/gcc/tree-pretty-print.h
+++ b/gcc/tree-pretty-print.h
@@ -45,7 +45,7 @@ extern int op_code_prio (enum tree_code);
extern int op_prio (const_tree);
extern const char *op_symbol_code (enum tree_code);
extern void print_call_name (pretty_printer *, tree, dump_flags_t);
-extern void percent_K_format (text_info *);
+extern void percent_K_format (text_info *, tree);
extern void pp_tree_identifier (pretty_printer *, tree);
extern void dump_function_header (FILE *, tree, dump_flags_t);
extern void pp_double_int (pretty_printer *pp, double_int d, bool uns);