This is the mail archive of the
mailing list for the GCC project.
Re: [ping] Change static chain to r11 on aarch64
> On Dec 12, 2018, at 5:12 PM, Uecker, Martin <Martin.Uecker@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:
> 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.