summaryrefslogtreecommitdiffstats
path: root/gcc/cccp.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-09 07:55:17 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-09 07:55:17 +0000
commit2430262441a9561ce325564d1c19860ae1f5b35f (patch)
treefe959be91e4bf1b2f000503e3b3bd557118c051d /gcc/cccp.c
parent3048346296abb6cee8135a13a475ef3607380ef6 (diff)
downloadppe42-gcc-2430262441a9561ce325564d1c19860ae1f5b35f.tar.gz
ppe42-gcc-2430262441a9561ce325564d1c19860ae1f5b35f.zip
* configure.in: Check for functions getrlimit and setrlimit.
* cccp.c (main): Check HAVE_GETRLIMIT and HAVE_SETRLIMIT in addition to RLIMIT_STACK to see if we can call getrlimit and setrlimit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r--gcc/cccp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index bf57c685dbc..381d5e9aae1 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -1230,7 +1230,7 @@ main (argc, argv)
/* Target-name to write with the dependency information. */
char *deps_target = 0;
-#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;
OpenPOWER on IntegriCloud