aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-06-08 21:35:21 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-06-09 13:08:25 +0100
commit628ba410b9265dbd4278c1f1b1fadf05348adef2 (patch)
treee620ade9ff35d46f0ec594cc5dabd94da0a0eb08 /gcc/tree-vectorizer.h
parent960de5dd886572711ef86fa1e15e30d3810eccb9 (diff)
downloadgcc-628ba410b9265dbd4278c1f1b1fadf05348adef2.zip
gcc-628ba410b9265dbd4278c1f1b1fadf05348adef2.tar.gz
gcc-628ba410b9265dbd4278c1f1b1fadf05348adef2.tar.bz2
libstdc++: Fix P2510R3 "Formatting pointers" [PR110149]
I had intended to support the P2510R3 proposal unconditionally in C++20 mode, but I left it half implemented. The parse function supported the new extensions, but the format function didn't. This adds the missing pieces, and makes it only enabled for C++26 and non-strict modes. libstdc++-v3/ChangeLog: PR libstdc++/110149 * include/std/format (formatter<const void*, charT>::parse): Only alow 0 and P for C++26 and non-strict modes. (formatter<const void*, charT>::format): Use toupper for P type, and insert zero-fill characters for 0 option. * testsuite/std/format/functions/format.cc: Check pointer formatting. Only check P2510R3 extensions conditionally. * testsuite/std/format/parse_ctx.cc: Only check P2510R3 extensions conditionally.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions