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>
Wed, 16 Dec 2020 14:33:26 +0000 (14:33 +0000)
commit96d9670e88333d8896a5d2f2bb0403c1e2ad19ab
tree8dc573d2011f42b250297cee152fdaf9c9869c9f
parent4be6c4e2a4df5229ec4545e7244dfcdbf1f5bca1
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::sprtinf if necessary.
libstdc++-v3/include/ext/throw_allocator.h