toplev.c (main): Check HAVE_GETRLIMIT and HAVE_SETRLIMIT in addition to RLIMIT_STACK to see if...

* toplev.c (main): Check HAVE_GETRLIMIT and HAVE_SETRLIMIT in addition
        to RLIMIT_STACK to see if we can call getrlimit and setrlimit.

From-SVN: r17030
This commit is contained in:
Manfred Hollstein 1997-12-09 16:41:12 +00:00 committed by Jeff Law
parent c229cba913
commit 08ce327637
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Dec 9 09:43:59 1997 Manfred Hollstein <manfred@s-direktnet.de>
* toplev.c (main): Check HAVE_GETRLIMIT and HAVE_SETRLIMIT in addition
to RLIMIT_STACK to see if we can call getrlimit and setrlimit.
Tue Dec 9 09:38:58 1997 David Edelsohn <edelsohn@mhpcc.edu>
* rs6000.h (FUNCTION_ARG_PADDING): Define.

View File

@ -3819,7 +3819,7 @@ main (argc, argv, envp)
--p;
progname = p;
#ifdef RLIMIT_STACK
#if defined (RLIMIT_STACK) && defined (HAVE_GETRLIMIT) && defined (HAVE_SETRLIMIT)
/* Get rid of any avoidable limit on stack size. */
{
struct rlimit rlim;