]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
toplev.c (main): Check HAVE_GETRLIMIT and HAVE_SETRLIMIT in addition to RLIMIT_STACK...
authorManfred Hollstein <manfred@s-direktnet.de>
Tue, 9 Dec 1997 16:41:12 +0000 (16:41 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 9 Dec 1997 16:41:12 +0000 (09:41 -0700)
        * 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

gcc/ChangeLog
gcc/toplev.c

index efdd2a8bb06bb646b6214bfff5e09a9191311a3a..3bee0b380e06d3c9cd79411e4cdda9502348775a 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 7340b623b64fadf7988460e148184e938db2817e..12d567656f0c1eb51c0e79f4df59120af57964c9 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;