> On Dec 12, 2018, at 5:12 PM, Uecker, Martin 
> <martin.uec...@med.uni-goettingen.de> wrote:
>> ...
>> I've not seen such an alternative implementation (-fno-trampolines is
>> ignored on all targets I tried),
> 
> It was implemented for Ada. But here is a patch to also
> activate it for C:
> 
> https://gcc.gnu.org/ml/gcc-patches/2018-12/msg00853.html
> 
> With this patch one can use nested functions in C without
> having an executable stack.

That's interesting, because the internals manual (section 18.11, "Support for 
nested functions") clearly implies that it's already supported so long as the 
target defines the necessary macros / target hooks.  Though admittedly the 
documentation is a bit muddled.

I've been wanting to use this, since executable stacks really need to be 
avoided on pdp11.

        paul


Reply via email to