[Bug fortran/68829] [4.9/5/6 Regression] Segfaults with -Ofast
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Thu Dec 10 11:06:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68829
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-12-10
Ever confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
On darwin you can increase the stack limit (ulimit -s is hard coded to 65532
kbytes)
with -Wl,-stack_size,0x20000000,-stack_addr,0xc0000000:
[Book15] f90/bug% gfc -O3 -fstack-arrays pr68829.f90
-Wl,-stack_size,0x10000000,-stack_addr,0xc0000000
[Book15] f90/bug% a.out
Illegal instruction
[Book15] f90/bug% gfc -O3 -fstack-arrays pr68829.f90
-Wl,-stack_size,0x20000000,-stack_addr,0xc0000000
[Book15] f90/bug% a.out
67108864
> But it's also that you are asking for it with -Ofast. Maybe the frontend
> should have a switch to specifiy a size limit?
Good idea, any volunteer?
More information about the Gcc-bugs
mailing list