diff options
author | Joseph Myers <joseph@codesourcery.com> | 2023-05-18 00:07:34 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2023-05-18 00:07:34 +0000 |
commit | eb35e343a2931023ef21c4246dffeefee9e7a8d7 (patch) | |
tree | 42563dca40a9400e9ff8e4f79a213956d94a28ba /libstdc++-v3/testsuite | |
parent | 6c6f96040a13e3403a418803cd9f539701c4c00e (diff) | |
download | gcc-eb35e343a2931023ef21c4246dffeefee9e7a8d7.tar.gz |
c: Handle printf %B like %b for C2x
WG14 decided to change the printf %B format from a recommended
extension to an optional feature defined in normative text. Thus,
change the format checking to handle %B like %b, so not diagnosing it
with -Wformat -std=c2x -pedantic, just as with other optional
normatively defined features (such as decimal floating point and its
associated formats, for example).
Bootstrapped with no regressions for x86_64-pc-linux-gnu.
gcc/c-family/
* c-format.cc (print_char_table): Handle %B like %b.
gcc/testsuite/
* gcc.dg/format/c2x-printf-1.c: Test %B here.
* gcc.dg/format/ext-9.c: Do not test %B here.
Diffstat (limited to 'libstdc++-v3/testsuite')
0 files changed, 0 insertions, 0 deletions