https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117291
--- Comment #13 from Peter Bergner <bergner at gcc dot gnu.org> --- (In reply to Segher Boessenkool from comment #12) > (In reply to Peter Bergner from comment #10) > > void > > stack_limit_increase (unsigned long pref ATTRIBUTE_UNUSED) > > { > > #if defined(HAVE_SETRLIMIT) && defined(HAVE_GETRLIMIT) \ > > && defined(RLIMIT_STACK) && defined(RLIM_INFINITY) > > ... > > > > I'll have to see why one or more of these are not set on Power. > > The latter two are both not defined (on gcc110 anyway). bergner@ltcden2-lp1:gcc-fsf-mainline-debug$ grep -r RLIMIT_STACK /usr/include/ /usr/include/asm-generic/resource.h:#define RLIMIT_STACK 3 /* max stack size */ /usr/include/bits/resource.h: RLIMIT_STACK = 3, /usr/include/bits/resource.h:#define RLIMIT_STACK RLIMIT_STACK bergner@ltcden2-lp1:gcc-fsf-mainline-debug$ grep -r RLIM_INFINITY /usr/include/ /usr/include/asm-generic/resource.h:#ifndef RLIM_INFINITY /usr/include/asm-generic/resource.h:# define RLIM_INFINITY (~0UL) /usr/include/bits/resource.h:# define RLIM_INFINITY ((__rlim_t) -1) /usr/include/bits/resource.h:# define RLIM_INFINITY 0xffffffffffffffffuLL