[C++ PATCH] Aligned new option handling fixes (PR c++/77651)

Christophe Lyon christophe.lyon@linaro.org
Thu Sep 22 14:26:00 GMT 2016


On 22 September 2016 at 15:01, Jason Merrill <jason@redhat.com> wrote:
> On Thu, Sep 22, 2016 at 4:58 AM, Christophe Lyon
> <christophe.lyon@linaro.org> wrote:
>> This new test (aligned-new6.C) fails on arm/aarch64 bare-metal targets
>> (using newlib):
>> arm-none-eabi/./libstdc++-v3/src/.libs/libstdc++.a(new_opa.o): In
>> function `operator new(unsigned int, std::align_val_t)':
>> /gccsrc/libstdc++-v3/libsupc++/new_opa.cc:76: undefined reference to
>> `aligned_alloc'
>
> Hmm, does this fix that?

Yes. (I tested on arm only)

Thanks,

Christophe



More information about the Gcc-patches mailing list