]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Only use __builtin_sprintf if supported [PR 96083]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 16 Dec 2020 13:50:34 +0000 (13:50 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 11 Jan 2021 12:56:34 +0000 (12:56 +0000)
commit78ba8511aca7f7d8d390dc6b7284a9e52963ca23
treedd3e1a5d8c92ab2d19b363a6619ed3ed4c9fe6bf
parent3613228af82953b061a7a1d3979719c8c2c0711d
libstdc++: Only use __builtin_sprintf if supported [PR 96083]

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::sprintf if necessary.

(cherry picked from commit 96d9670e88333d8896a5d2f2bb0403c1e2ad19ab)
libstdc++-v3/include/ext/throw_allocator.h