PR translation/80280 - Missing closing quote (%>) c/semantics.c and c/c-typeck.c
commit554efdbb906c297691923fa395c1420a452b4661
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 May 2017 02:47:14 +0000 (9 02:47 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 May 2017 02:47:14 +0000 (9 02:47 +0000)
tree4be7c50f7014900235195c4b730590f7cf4e7a12
parent2d63dfd7109c3f9043320a23e090fe67cc236875
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247778 138bc75d-0d04-0410-961f-82ee72b054a4
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]