From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9171 invoked by alias); 16 Aug 2007 11:48:36 -0000 Received: (qmail 8813 invoked by uid 22791); 16 Aug 2007 11:48:34 -0000 X-Spam-Check-By: sourceware.org Received: from wx-out-0506.google.com (HELO wx-out-0506.google.com) (66.249.82.226) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 16 Aug 2007 11:48:30 +0000 Received: by wx-out-0506.google.com with SMTP id i31so195299wxd for ; Thu, 16 Aug 2007 04:48:28 -0700 (PDT) Received: by 10.90.119.15 with SMTP id r15mr2315780agc.1187264907511; Thu, 16 Aug 2007 04:48:27 -0700 (PDT) Received: by 10.100.12.8 with HTTP; Thu, 16 Aug 2007 04:48:27 -0700 (PDT) Message-ID: <19c433eb0708160448t3b6aae03i7e8c6aa25e003477@mail.gmail.com> Date: Thu, 16 Aug 2007 11:48:00 -0000 From: "=?ISO-8859-1?Q?Fran=E7ois-Xavier_Coudert?=" To: "Janne Blomqvist" Subject: Re: [PATCH, fortran] Add -frecursive and fix local array handling with -fopenmp Cc: "Asher Langton" , fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org In-Reply-To: <7b446c2e0708151452o7bc6eebcyd995f42fbe8a8e6a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1953a4560708151258p44c9b855n2a0fc521879b3a25@mail.gmail.com> <7b446c2e0708151452o7bc6eebcyd995f42fbe8a8e6a@mail.gmail.com> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg01002.txt.bz2 > And, since running out of stack space due to large arrays on the stack > seems to be much more common in Fortran rather than recursing > infinitely, add something like the following to > libgfortran/runtime/main.c: > > #include > #include > > #ifdef HAVE_GETRLIMIT && HAVE_SETRLIMIT > /* Try to remove stack space limits. */ > void > set_stack_rlimit() I don't think that's a good idea. People are free to set their stack limit the way they want, we should honor this and shouldn't try to be smart about this. If I set a stack limit on my system, it's for a reason. If someone set it on me without my knowledge, then I can complain to that someone when things go wrong (someone being either distro vendor or sysadmin). FX