OSDN Git Service

* toplev.c (main): Check HAVE_GETRLIMIT and HAVE_SETRLIMIT in addition
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Dec 1997 16:41:12 +0000 (16:41 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Dec 1997 16:41:12 +0000 (16:41 +0000)
        to RLIMIT_STACK to see if we can call getrlimit and setrlimit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17030 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/toplev.c

index efdd2a8..3bee0b3 100644 (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.
index 7340b62..12d5676 100644 (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;