This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]