diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-01-09 13:16:11 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-10-31 10:24:08 +0000 |
commit | 646b24efaa50b149c12d0ae432999cb5a0cd12f2 (patch) | |
tree | f2ac431e8e2f7be81c0037ec749d6fb94a9626e3 /gcc | |
parent | b39f62ff739e9ffea0e6485667f15b985f8cd63d (diff) | |
download | gcc-646b24efaa50b149c12d0ae432999cb5a0cd12f2.zip gcc-646b24efaa50b149c12d0ae432999cb5a0cd12f2.tar.gz gcc-646b24efaa50b149c12d0ae432999cb5a0cd12f2.tar.bz2 |
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 <jakub@redhat.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions