https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117434
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
CC| |iains at gcc dot gnu.org
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
The executable stack thing happens when a trampoline is required to handle the
nested function. Optimization will sometimes elide the nested function call
via inlining. Iff this detail is not part of the fortran ABI you could resort
to use heap trampolines - not sure how to activate this from the frontend side,
IIRC darwin uses those (activated from the target side). Ian might know.