https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86878

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:646b24efaa50b149c12d0ae432999cb5a0cd12f2

commit r15-4797-g646b24efaa50b149c12d0ae432999cb5a0cd12f2
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Tue Jan 9 13:16:11 2024 +0000

    libstdc++: Add align_alloc attribute to aligned operator new

    The aligned versions of operator new should use the align_alloc
    attribute to help the compiler.

    PR c++/86878 requests that the compiler would use the attribute to warn
    about invalid attributes, so an XFAILed test is added for that.

    libstdc++-v3/ChangeLog:

            * libsupc++/new (operator new): Add attribute align_alloc(2) to
            overloads taking a std::align_val_t argument.
            * testsuite/18_support/new_aligned_warn.cc: New test.

    Reviewed-by: Jakub Jelinek <ja...@redhat.com>

Reply via email to