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
This commit is contained in:
Sebastian Huber 2018-08-10 06:31:57 +00:00 committed by Sebastian Huber
parent 83a065cfac
commit fd5c2f349a
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,13 @@
2018-08-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
Backport from mainline
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-08 Jonathan Wakely <jwakely@redhat.com>
* libsupc++/new_opa.cc (aligned_alloc): Declare inside namespace to

View File

@ -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

View File

@ -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