From: Sebastian Huber Date: Fri, 10 Aug 2018 06:31:57 +0000 (+0000) Subject: libstdc++-v3: Have aligned_alloc() on Newlib X-Git-Tag: releases/gcc-7.4.0~213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd5c2f349a57f7a61cc855603baec95fd4ce1f92;p=thirdparty%2Fgcc.git libstdc++-v3: Have aligned_alloc() on Newlib While building for Newlib, some configure checks must be hard coded. The aligned_alloc() is supported since 2015 in Newlib. libstdc++-v3/ PR target/85904 * configure.ac: Define HAVE_ALIGNED_ALLOC if building for Newlib. * configure: Regenerate. From-SVN: r263463 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1b82689d8aa9..ae806a569968 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,13 @@ +2018-08-10 Sebastian Huber + + Backport from mainline + 2018-08-10 Sebastian Huber + + PR target/85904 + * configure.ac: Define HAVE_ALIGNED_ALLOC if building for + Newlib. + * configure: Regenerate. + 2018-08-08 Jonathan Wakely * libsupc++/new_opa.cc (aligned_alloc): Declare inside namespace to diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index e1c55aa72ff5..6ab80208724a 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -28945,6 +28945,8 @@ else $as_echo "#define HAVE_TANHF 1" >>confdefs.h + $as_echo "#define HAVE_ALIGNED_ALLOC 1" >>confdefs.h + $as_echo "#define HAVE_ICONV 1" >>confdefs.h $as_echo "#define HAVE_MEMALIGN 1" >>confdefs.h diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac index a7dbe5678bf3..0f09b8368356 100644 --- a/libstdc++-v3/configure.ac +++ b/libstdc++-v3/configure.ac @@ -323,6 +323,7 @@ else AC_DEFINE(HAVE_TANF) AC_DEFINE(HAVE_TANHF) + AC_DEFINE(HAVE_ALIGNED_ALLOC) AC_DEFINE(HAVE_ICONV) AC_DEFINE(HAVE_MEMALIGN) else