On 11/13/2021 2:45 AM, Maxim Blinov wrote:
Implement the __builtin_nested_func_ptr_{created,deleted} functions
for the aarch64-linux platform. This serves to exercise the
infrastructure added in libgcc (--enable-off-stack-trampolines) and
gcc (-foff-stack-trampolines) in supporting off-stack trampoline
generation, and is intended primarily for demonstration and debugging
purposes.
Co-authored-by: Andrew Burgess <andrew.burg...@embecosm.com>
libgcc/ChangeLog:
* config/aarch64/heap-trampoline.c: New file: Implement off-stack
trampolines for aarch64.
* config/aarch64/t-heap-trampoline: Add rule to build
config/aarch64/heap-trampoline.c
* config.host (aarch64-*-linux*): Handle
--enable-off-stack-trampolines.
* configure.ac (--enable-off-stack-trampolines): Permit setting
for target aarch64-*-linux*.
* configure: Regenerate.
I'd leave this to the aarch64 maintainers. I don't see anything
particularly bad. I'd probably drop the all the configure time
selectability stuff and just have the aarch64 darwin default to this
implementation if the basic concept goes forward.
jeff