Re: [PATCH][ASan] Avoid ‘void operator delete(void*, size_t)’ is a usual (non-placement) deallocation function in C++14 warning in asan/asan_new_delete.cc

Uros Bizjak ubizjak at gmail.com
Sat Feb 7 01:17:18 PST 2015


On Fri, Feb 6, 2015 at 10:40 PM, Kostya Serebryany <kcc at google.com> wrote:
> So, the presence of sized-delete interceptors will now depend on the ability
> of the host compiler to build it,
> not on the ability of the target compiler. Not good.
>
> Also, in the bug report I do not see what version of g++ is used with which
> flags.
> Maybe we should just add a flag that allows this code?

The source is compiled during a gcc bootstrap, with a freshly built
g++, and -std=gnu++11 is passed to the compiler. Maybe in addition to
the proposed patch, -std=c++14 (or -std=gnu++14) and
-Wno-sized-deallocation should be passed, as was the case with similar
warning in libstdc++ [1].

[1] https://gcc.gnu.org/ml/gcc-patches/2015-01/msg02486.html

Uros.



More information about the llvm-commits mailing list