re PR c/43673 (Incorrect warning: use of 'D' length modifier with 'a' type character)
authorXiong Hu Luo <luoxhu@linux.ibm.com>
Fri, 31 May 2019 18:46:02 +0000 (18:46 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 31 May 2019 18:46:02 +0000 (12:46 -0600)
commitf2c2c4e30200463abd0ff1677daf16d49ad4f122
tree833d3c452cbb6a8f1a2f4c29404f0910ffbc8828
parent2a1c064a94c077d3f0b1383f825de7105a7c075d
re PR c/43673 (Incorrect warning: use of 'D' length modifier with 'a' type character)

PR c/43673
* c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
TEX_D32, TEX_D64 or TEX_D128.

PR c/43673
* gcc.dg/format-dfp-printf-1.c: New test.
* gcc.dg/format-dfp-scanf-1.c: Likewise.

From-SVN: r271820
gcc/ChangeLog
gcc/c-family/c-format.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/dfp-printf-1.c
gcc/testsuite/gcc.dg/format/dfp-scanf-1.c