From: hp Date: Thu, 24 Oct 2002 23:27:27 +0000 (+0000) Subject: * testsuite/testsuite_hooks.cc (__set_testsuite_memlimit): Use X-Git-Tag: upstream/4.9.2~83720 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e973eec4e9aef193384056051dd711ca0ef4c1d1;p=platform%2Fupstream%2Flinaro-gcc.git * testsuite/testsuite_hooks.cc (__set_testsuite_memlimit): Use __typeof__ (r.rlim_cur), not rlim_t in declaration of limit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58512 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c98a2db..13ffd4e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2002-10-24 Hans-Peter Nilsson + + * testsuite/testsuite_hooks.cc (__set_testsuite_memlimit): Use + __typeof__ (r.rlim_cur), not rlim_t in declaration of limit. + 2002-10-23 Jakub Jelinek * testsuite/22_locale/num_put_members_char.cc (test01): Swap size diff --git a/libstdc++-v3/testsuite/testsuite_hooks.cc b/libstdc++-v3/testsuite/testsuite_hooks.cc index 4e6c831..0af2bd1 100644 --- a/libstdc++-v3/testsuite/testsuite_hooks.cc +++ b/libstdc++-v3/testsuite/testsuite_hooks.cc @@ -38,7 +38,9 @@ void __set_testsuite_memlimit(float __size) { struct rlimit r; - rlim_t limit = (rlim_t)(__size * 1048576); + // Cater to the absence of rlim_t. + __typeof__ (r.rlim_cur) limit + = (__typeof__ (r.rlim_cur))(__size * 1048576); // Heap size, seems to be common. #if _GLIBCPP_HAVE_MEMLIMIT_DATA