summaryrefslogtreecommitdiff
path: root/gcc/genattrtab.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-23 11:55:03 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-23 11:55:03 +0000
commit25f6aa19c15f327739138d2a493d43ae8857040d (patch)
treeb707223acf0fa0aa1dadf69f2525164464df877d /gcc/genattrtab.c
parente5af4166869e3781079582abbf762080b1be45d4 (diff)
downloadgcc-25f6aa19c15f327739138d2a493d43ae8857040d.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17218 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genattrtab.c')
-rw-r--r--gcc/genattrtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c
index 8655c0602be..8166ab84b26 100644
--- a/gcc/genattrtab.c
+++ b/gcc/genattrtab.c
@@ -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;