This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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:
> 
> 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]