This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/79190] [7 Regression] ld: (Warning) Unsatisfied symbol "aligned_alloc"
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 Jan 2017 10:53:34 +0000
- Subject: [Bug libstdc++/79190] [7 Regression] ld: (Warning) Unsatisfied symbol "aligned_alloc"
- Auto-submitted: auto-generated
- References: <bug-79190-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79190
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
By fallback, do you mean just malloc of needed size + alignment + sizeof
(size_t)
or something similar and storing say the difference between the returned
pointer and what malloc returned into the size_t word before the returned
pointer and then not using free on the pointer with which aligned delete is
called, but subtracting the padding from that first? If aligned new must be
always accompanied with aligned delete, then it could work, otherwise you'd
need to wrap all new and all deletes.