libstdc++-v3: Have aligned_alloc() on Newlib
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Fri, 10 Aug 2018 06:27:35 +0000 (06:27 +0000)
committerSebastian Huber <sh@gcc.gnu.org>
Fri, 10 Aug 2018 06:27:35 +0000 (06:27 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/configure
libstdc++-v3/configure.ac

index 1b61ec79360f3b91d4b48febc91b70a5e42cbbde..c76324ccdd36f7cf139c1cde8e4de8c22316d6f1 100644 (file)
@@ -1,3 +1,10 @@
+2018-08-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
+
+       PR target/85904
+       * configure.ac: Define HAVE_ALIGNED_ALLOC if building for
+       Newlib.
+       * configure: Regenerate.
+
 2018-08-10  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/std/deque (std::pmr::deque): Declare alias.
index d33081d544ca12d86931a544d0ed048af2177803..53803b7e599ebc535fef11c91231a8cb803c03e1 100755 (executable)
@@ -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
index 332af3706d3bc9da378251d3bded18556dfa68d0..e15228dde5eebe327ef8f937ddcc5cf4c469c01c 100644 (file)
@@ -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