From: Maxim Kuvyrkov Date: Fri, 2 Sep 2016 13:42:55 +0000 (+0000) Subject: Use setrlimit for testing libstdc++ in cross toolchains X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a81036247b70013eeb764e4c0e2f65c52d6142b;p=gcc.git Use setrlimit for testing libstdc++ in cross toolchains * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Check for presence of setrlimit on both native and cross targets. * configure: Regenerate. From-SVN: r239955 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 10761e8c38a..a82da55a6c6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2016-09-02 Maxim Kuvyrkov + + * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Check for presence of + setrlimit on both native and cross targets. + * configure: Regenerate. + 2016-08-31 Jonathan Wakely * include/bits/shared_ptr.h (_Assignable): New alias template. diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index aaf5adbe62b..6d897bed8b1 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -632,10 +632,10 @@ dnl baseline_dir dnl baseline_subdir_switch dnl AC_DEFUN([GLIBCXX_CONFIGURE_TESTSUITE], [ - if $GLIBCXX_IS_NATIVE ; then - # Do checks for resource limit functions. - GLIBCXX_CHECK_SETRLIMIT + # Do checks for resource limit functions. + GLIBCXX_CHECK_SETRLIMIT + if $GLIBCXX_IS_NATIVE ; then # Look for setenv, so that extended locale tests can be performed. GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_3(setenv) fi diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index f2a75aaa2f3..bfcb465f299 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -79449,8 +79449,7 @@ $as_echo "$ac_cv_x86_rdrand" >&6; } # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE. - if $GLIBCXX_IS_NATIVE ; then - # Do checks for resource limit functions. + # Do checks for resource limit functions. setrlimit_have_headers=yes for ac_header in unistd.h sys/time.h sys/resource.h @@ -79679,6 +79678,7 @@ $as_echo "#define _GLIBCXX_RES_LIMITS 1" >>confdefs.h $as_echo "$ac_res_limits" >&6; } + if $GLIBCXX_IS_NATIVE ; then # Look for setenv, so that extended locale tests can be performed. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setenv declaration" >&5