[PATCH 1/3][GCC] Add new target hook asm_post_cfi_startproc

Sam Tebbs Sam.Tebbs@arm.com
Fri Nov 2 18:07:00 GMT 2018


On 11/02/2018 05:28 PM, Sam Tebbs wrote:

> Hi all,
>
> This patch adds a new target hook called "asm_post_cfi_startproc". This hook is
> intended to be used by the aarch64 backend to emit a directive that enables
> support for unwinding frames signed with the pointer authentication B-key. This
> hook is triggered after the ".cfi_startproc" directive is emitted in
> gcc/dwarf2out.c.
>
> Bootstrapped on aarch64-none-linux-gnu and tested on aarch64-none-elf with no regressions.
>
> Ok for trunk?
>
> gcc/
> 2018-11-02  Sam Tebbs<sam.tebbs@arm.com>
>
> 	* doc/tm.texi (TARGET_ASM_POST_CFI_STARTPROC): Define.
> 	* doc/tm.texi.in (TARGET_ASM_POST_CFI_STARTPROC): Define.
> 	* dwarf2out.c (dwarf2out_do_cfi_startproc): Trigger the hook.
> 	* hooks.c (hook_void_FILEptr_tree): Define.
> 	* hooks.h (hook_void_FILEptr_tree): Define.
> 	* target.def (post_cfi_startproc): Define.

CCing global reviewers and dwarf maintainers.



More information about the Gcc-patches mailing list