PR translation/80280 - Missing closing quote (%>) c/semantics.c and c/c-typeck.c
authorMartin Sebor <msebor@redhat.com>
Tue, 9 May 2017 02:47:14 +0000 (02:47 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 9 May 2017 02:47:14 +0000 (20:47 -0600)
commit631238ac3f50b42dd55e87cd8bea02c7fbec0f53
tree4be7c50f7014900235195c4b730590f7cf4e7a12
parent6ba86ba72f9d437275d9352244fb833ea471e494
PR translation/80280 - Missing closing quote (%>) c/semantics.c and c/c-typeck.c

gcc/c-family/ChangeLog:

PR translation/80280
* c-format.h (struct format_flag_spec): Add new member.
(T89_T): New macro.
* c-format.c (local_tree_type_node): New global.
(printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
(gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
(strfmon_flag_specs): Likewise.
(gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
with distinct quoting properties.
(gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
(flag_chars_t::validate): Add argument and handle bad quoting.
(check_format_info_main): Handle quoting problems.
(init_dynamic_diag_info): Simplify.

gcc/testsuite/ChangeLog:

PR translation/80280
* gcc.dg/format/gcc_diag-10.c: New test.

From-SVN: r247778
gcc/c-family/ChangeLog
gcc/c-family/c-format.c
gcc/c-family/c-format.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/gcc_diag-10.c [new file with mode: 0644]