genattrtab.c (main): Check HAVE_{G,S}ETRLIMIT in addition to RLIMIT_STACK.
authorPaul Eggert <eggert@twinsun.com>
Tue, 23 Dec 1997 11:55:03 +0000 (11:55 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 23 Dec 1997 11:55:03 +0000 (04:55 -0700)
        * genattrtab.c (main): Check HAVE_{G,S}ETRLIMIT in addition to
        RLIMIT_STACK.  This maintains consistency with the recent, similar
        patch to cccp.c and toplev.c.

From-SVN: r17218

gcc/ChangeLog
gcc/genattrtab.c

index e456fe1ea727b5ff8f0014ced15d7ef250f4b4ea..454c7f6ab47efebeef32529a541de13f06882227 100644 (file)
@@ -1,3 +1,9 @@
+Tue Dec 23 12:56:46 1997 Paul Eggert <eggert@twinsun.com>:
+
+       * genattrtab.c (main): Check HAVE_{G,S}ETRLIMIT in addition to
+       RLIMIT_STACK.  This maintains consistency with the recent, similar
+       patch to cccp.c and toplev.c.
+
 Tue Dec 23 05:17:28 1997  Richard Henderson  <rth@cygnus.com>
 
        * genattrtab.c (expand_units): For large nr opclasses, expand
index 8655c0602bed38a785d57a3da87d3d9e2c8fe446..8166ab84b26f3ac26422e07e483fe968f8d49aa2 100644 (file)
@@ -5803,7 +5803,7 @@ main (argc, argv)
   rtx tem;
   int i;
 
-#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;