r263375 - in /branches/gcc-7-branch/libstdc++-v...

redi@gcc.gnu.org redi@gcc.gnu.org
Tue Aug 7 22:50:00 GMT 2018


Author: redi
Date: Tue Aug  7 22:50:15 2018
New Revision: 263375

URL: https://gcc.gnu.org/viewcvs?rev=263375&root=gcc&view=rev
Log:
Add workaround for aligned_alloc bug on AIX

On AIX 7.2.0.0 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.

Backport from mainline
2018-07-30  Jonathan Wakely  <jwakely@redhat.com>

	* 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:
    branches/gcc-7-branch/libstdc++-v3/testsuite/18_support/new_aligned.cc
Modified:
    branches/gcc-7-branch/libstdc++-v3/ChangeLog
    branches/gcc-7-branch/libstdc++-v3/libsupc++/new_opa.cc



More information about the Libstdc++-cvs mailing list