public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/96083] New: Clang can't compile <ext/throw_allocator.h>: error: use of undeclared identifier '__builtin_sprintf'
@ 2020-07-06 16:43 redi at gcc dot gnu.org
2020-12-16 14:33 ` [Bug libstdc++/96083] " cvs-commit at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2020-07-06 16:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96083
Bug ID: 96083
Summary: Clang can't compile <ext/throw_allocator.h>: error:
use of undeclared identifier '__builtin_sprintf'
Product: gcc
Version: 10.1.1
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Target Milestone: ---
$ clang++ -include bits/extc++.h -x c++ - </dev/null
In file included from <built-in>:1:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/x86_64-redhat-linux/bits/extc++.h:69:
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/throw_allocator.h:316:7:
error: use of undeclared identifier '__builtin_sprintf'
__builtin_sprintf(buf, "%lu", l);
^
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/throw_allocator.h:321:7:
error: use of undeclared identifier '__builtin_sprintf'
__builtin_sprintf(buf, "%lu", l);
^
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/throw_allocator.h:325:7:
error: use of undeclared identifier '__builtin_sprintf'
__builtin_sprintf(buf, "%p", ref.first);
^
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/throw_allocator.h:338:7:
error: use of undeclared identifier '__builtin_sprintf'
__builtin_sprintf(buf, "%lu", l);
^
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/throw_allocator.h:342:7:
error: use of undeclared identifier '__builtin_sprintf'
__builtin_sprintf(buf, "%p", ref.first);
^
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/throw_allocator.h:575:4:
error: use of undeclared identifier '__builtin_sprintf'
__builtin_sprintf(buf, "%f", random);
^
6 errors generated.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/96083] Clang can't compile <ext/throw_allocator.h>: error: use of undeclared identifier '__builtin_sprintf'
2020-07-06 16:43 [Bug libstdc++/96083] New: Clang can't compile <ext/throw_allocator.h>: error: use of undeclared identifier '__builtin_sprintf' redi at gcc dot gnu.org
@ 2020-12-16 14:33 ` cvs-commit at gcc dot gnu.org
2021-01-11 15:04 ` cvs-commit at gcc dot gnu.org
2021-01-11 17:52 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-16 14:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96083
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:96d9670e88333d8896a5d2f2bb0403c1e2ad19ab
commit r11-6146-g96d9670e88333d8896a5d2f2bb0403c1e2ad19ab
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Dec 16 13:50:34 2020 +0000
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/96083] Clang can't compile <ext/throw_allocator.h>: error: use of undeclared identifier '__builtin_sprintf'
2020-07-06 16:43 [Bug libstdc++/96083] New: Clang can't compile <ext/throw_allocator.h>: error: use of undeclared identifier '__builtin_sprintf' redi at gcc dot gnu.org
2020-12-16 14:33 ` [Bug libstdc++/96083] " cvs-commit at gcc dot gnu.org
@ 2021-01-11 15:04 ` cvs-commit at gcc dot gnu.org
2021-01-11 17:52 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-01-11 15:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96083
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:93beee71a5ba5ee97a072d94780b140ae159fd74
commit r10-9250-g93beee71a5ba5ee97a072d94780b140ae159fd74
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Dec 16 13:50:34 2020 +0000
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)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/96083] Clang can't compile <ext/throw_allocator.h>: error: use of undeclared identifier '__builtin_sprintf'
2020-07-06 16:43 [Bug libstdc++/96083] New: Clang can't compile <ext/throw_allocator.h>: error: use of undeclared identifier '__builtin_sprintf' redi at gcc dot gnu.org
2020-12-16 14:33 ` [Bug libstdc++/96083] " cvs-commit at gcc dot gnu.org
2021-01-11 15:04 ` cvs-commit at gcc dot gnu.org
@ 2021-01-11 17:52 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2021-01-11 17:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96083
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|--- |9.4
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 9.4 and 10.3
The gcc-9 branch commit didn't show up here, but was r9-9173
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-01-11 17:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 16:43 [Bug libstdc++/96083] New: Clang can't compile <ext/throw_allocator.h>: error: use of undeclared identifier '__builtin_sprintf' redi at gcc dot gnu.org
2020-12-16 14:33 ` [Bug libstdc++/96083] " cvs-commit at gcc dot gnu.org
2021-01-11 15:04 ` cvs-commit at gcc dot gnu.org
2021-01-11 17:52 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).