diff options
author | Maya Rashish <coypu@sdf.org> | 2018-05-24 17:31:13 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-05-24 18:31:13 +0100 |
commit | 95c921d18c5238c0bf76f7b70b83b65e5933c028 (patch) | |
tree | 5faf7d5423b660be43eaa772f25c5da86a34ae73 /libstdc++-v3/configure | |
parent | 71a93b0863650a6ce4d4da8d6ccd0582ac9a6382 (diff) | |
download | gcc-95c921d18c5238c0bf76f7b70b83b65e5933c028.zip gcc-95c921d18c5238c0bf76f7b70b83b65e5933c028.tar.gz gcc-95c921d18c5238c0bf76f7b70b83b65e5933c028.tar.bz2 |
PR target/85904 check for aligned_alloc on netbsd cross-compilation
2018-05-24 Maya Rashish <coypu@sdf.org>
PR target/85904
* crossconfig.m4: Test for aligned_alloc on netbsd.
* configure: Regenerate.
From-SVN: r260678
Diffstat (limited to 'libstdc++-v3/configure')
-rwxr-xr-x | libstdc++-v3/configure | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index f3522ee..79eb187 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -66314,6 +66314,19 @@ $as_echo "$ac_ld_relro" >&6; } $as_echo "#define HAVE_ISNANL 1" >>confdefs.h fi + 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 + ;; *-qnx6.1* | *-qnx6.2*) SECTION_FLAGS='-ffunction-sections -fdata-sections' |