Re: [committed] libstdc++: Only use __builtin_sprintf if supported [PR 96083]

2020-12-16 Thread Jonathan Wakely via Gcc-patches
On 16/12/20 17:02 +, Jonathan Wakely wrote: On 16/12/20 09:23 -0700, Martin Sebor via Libstdc++ wrote: On 12/16/20 8:00 AM, Jonathan Wakely via Gcc-patches wrote: Clang doesn't support __builtin_sprintf, so use std::sprintf instead. libstdc++-v3/ChangeLog: PR libstdc++/96083

Re: [committed] libstdc++: Only use __builtin_sprintf if supported [PR 96083]

2020-12-16 Thread Martin Sebor via Gcc-patches
On 12/16/20 10:04 AM, Jonathan Wakely wrote: On 16/12/20 17:02 +, Jonathan Wakely wrote: On 16/12/20 09:23 -0700, Martin Sebor via Libstdc++ wrote: On 12/16/20 8:00 AM, Jonathan Wakely via Gcc-patches wrote: Clang doesn't support __builtin_sprintf, so use std::sprintf instead. libstdc++-v

Re: [committed] libstdc++: Only use __builtin_sprintf if supported [PR 96083]

2020-12-16 Thread Jonathan Wakely via Gcc-patches
On 16/12/20 17:02 +, Jonathan Wakely wrote: On 16/12/20 09:23 -0700, Martin Sebor via Libstdc++ wrote: On 12/16/20 8:00 AM, Jonathan Wakely via Gcc-patches wrote: Clang doesn't support __builtin_sprintf, so use std::sprintf instead. libstdc++-v3/ChangeLog: PR libstdc++/96083

Re: [committed] libstdc++: Only use __builtin_sprintf if supported [PR 96083]

2020-12-16 Thread Jonathan Wakely via Gcc-patches
On 16/12/20 09:23 -0700, Martin Sebor via Libstdc++ wrote: On 12/16/20 8:00 AM, Jonathan Wakely via Gcc-patches wrote: Clang doesn't support __builtin_sprintf, so use std::sprintf instead. libstdc++-v3/ChangeLog: PR libstdc++/96083 * include/ext/throw_allocator.h: Use __has_bui

Re: [committed] libstdc++: Only use __builtin_sprintf if supported [PR 96083]

2020-12-16 Thread Martin Sebor via Gcc-patches
On 12/16/20 8:00 AM, Jonathan Wakely via Gcc-patches wrote: Clang doesn't support __builtin_sprintf, so use std::sprintf instead. libstdc++-v3/ChangeLog: PR libstdc++/96083 * include/ext/throw_allocator.h: Use __has_builtin to check for __builtin_sprintf support, and use

[committed] libstdc++: Only use __builtin_sprintf if supported [PR 96083]

2020-12-16 Thread Jonathan Wakely via Gcc-patches
Clang doesn't support __builtin_sprintf, so use std::sprintf instead. libstdc++-v3/ChangeLog: PR libstdc++/96083 * include/ext/throw_allocator.h: Use __has_builtin to check for __builtin_sprintf support, and use std::sprtinf if necessary. Tested powerpc64le-linux. Committ