]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add workaround for aligned_alloc bug on AIX
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Jul 2018 17:12:44 +0000 (17:12 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Jul 2018 17:12:44 +0000 (17:12 +0000)
commitb7f8b1793a248caf9b71b1a8c0827e62ccde13f4
tree07acab6e28a1021cced45532f4b25b59a52ca0c4
parent8fd65ace9ef04ca427f6051d7d7fa250db30499d
Add workaround for aligned_alloc bug on AIX

20_util/memory_resource/2.cc FAILs on AIX 7.2.0.0, because aligned_alloc
incorrectly requires the alignment to be a multiple of sizeof(void*).

This adds a workaround to the operator new overload taking an alignment
value, to increase the alignment (and size) if needed.

* libsupc++/new_opa.cc (operator new(size_t, align_val_t)): Add
workaround for aligned_alloc bug on AIX.
* testsuite/18_support/new_aligned.cc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263073 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/new_opa.cc
libstdc++-v3/testsuite/18_support/new_aligned.cc [new file with mode: 0644]