Adjust arguments to aligned_alloc or posix_memalign
authorJonathan Wakely <jwakely@redhat.com>
Fri, 16 Sep 2016 12:11:19 +0000 (13:11 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 16 Sep 2016 12:11:19 +0000 (13:11 +0100)
commit426042f5f227944c12fbdfb597e078cfbcb1e13d
treeb7ee62581873f13e2316d6e476926bfdb9339fc3
parent2c3d35a661a6ac944f23221fc0241436cfaba93d
Adjust arguments to aligned_alloc or posix_memalign

* libsupc++/new_opa.cc [_GLIBCXX_HAVE_POSIX_MEMALIGN] (aligned_alloc):
Increase alignment if less than sizeof(void*).
[_GLIBCXX_HAVE_ALIGNED_ALLOC] (operator new(size_t, align_val_t)):
Increase size if not a multiple of alignment.

From-SVN: r240187
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/new_opa.cc