From: Sebastian Huber Date: Fri, 10 Aug 2018 06:27:35 +0000 (+0000) Subject: libstdc++-v3: Have aligned_alloc() on Newlib X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee6ad3e788868f98fb8cae418231e86f5ace1c0a;p=gcc.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: r263461 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1b61ec79360..c76324ccdd3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2018-08-10 Sebastian Huber + + PR target/85904 + * configure.ac: Define HAVE_ALIGNED_ALLOC if building for + Newlib. + * configure: Regenerate. + 2018-08-10 Jonathan Wakely * include/std/deque (std::pmr::deque): Declare alias. diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index d33081d544c..53803b7e599 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -28967,6 +28967,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 332af3706d3..e15228dde5e 100644 --- a/libstdc++-v3/configure.ac +++ b/libstdc++-v3/configure.ac @@ -330,6 +330,7 @@ else AC_DEFINE(HAVE_TANF) AC_DEFINE(HAVE_TANHF) + AC_DEFINE(HAVE_ALIGNED_ALLOC) AC_DEFINE(HAVE_ICONV) AC_DEFINE(HAVE_MEMALIGN) else