[Bug libstdc++/79190] [7 Regression] ld: (Warning) Unsatisfied symbol "aligned_alloc"

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 23 10:53:00 GMT 2017


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.


More information about the Gcc-bugs mailing list