This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, fortran] Add -frecursive and fix local array handling with -fopenmp


> 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 <sys/time.h>
> #include <sys/resource.h>
>
> #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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]