summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorBernd Edlinger <edlinger@gcc.gnu.org>2016-12-01 06:06:04 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2016-12-01 06:06:04 +0000
commit77e6870d7fc85a4139f7f27ee3287b103d374ab2 (patch)
tree6baa09c0844ed0304ea8551624fe22b4f5a75176 /libstdc++-v3
parent6e7f1be7aeabdb64c863f90e317ec1c80920adfa (diff)
downloadgcc-77e6870d7fc85a4139f7f27ee3287b103d374ab2.tar.gz
crossconfig.m4 (*-linux*): Add link-check for memalign.
2016-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de> * crossconfig.m4 (*-linux*): Add link-check for memalign. * configure: Regenerated. From-SVN: r243095
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog7
-rwxr-xr-xlibstdc++-v3/configure13
-rw-r--r--libstdc++-v3/crossconfig.m41
3 files changed, 20 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index cd4f5aeecdb..b5f94c09c63 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,4 +1,9 @@
-2016-11-31 Tim Shen <timshen@google.com>
+2016-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * crossconfig.m4 (*-linux*): Add link-check for memalign.
+ * configure: Regenerated.
+
+2016-12-01 Tim Shen <timshen@google.com>
PR libstdc++/71500
* include/bits/regex.h (basic_regex::basic_regex): Use ECMAScript
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index f32197e0fab..1f72e3ff9bb 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -59826,6 +59826,19 @@ _ACEOF
fi
done
+ for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+eval as_val=\$$as_ac_var
+ if test "x$as_val" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4
index 6abc84f8c43..4eaf20855f3 100644
--- a/libstdc++-v3/crossconfig.m4
+++ b/libstdc++-v3/crossconfig.m4
@@ -157,6 +157,7 @@ case "${host}" in
AC_DEFINE(_GLIBCXX_USE_RANDOM_TR1)
GCC_CHECK_TLS
AC_CHECK_FUNCS(__cxa_thread_atexit_impl)
+ AC_CHECK_FUNCS(aligned_alloc posix_memalign memalign _aligned_malloc)
AM_ICONV
;;
*-mingw32*)