r263073 - in /trunk/libstdc++-v3: ChangeLog lib...

redi@gcc.gnu.org redi@gcc.gnu.org
Mon Jul 30 17:12:00 GMT 2018


Author: redi
Date: Mon Jul 30 17:12:44 2018
New Revision: 263073

URL: https://gcc.gnu.org/viewcvs?rev=263073&root=gcc&view=rev
Log:
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.

Added:
    trunk/libstdc++-v3/testsuite/18_support/new_aligned.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/libsupc++/new_opa.cc



More information about the Gcc-cvs mailing list