Re: [PATCH] RISC-V: Fix vector cfi notes for stack-clash protection

2024-08-22 Thread Jeff Law
On 8/21/24 3:11 PM, Raphael Moreira Zinsly wrote: The stack-clash code is generating wrong cfi directives in riscv_v_adjust_scalable_frame because REG_CFA_DEF_CFA has a different encoding than REG_FRAME_RELATED_EXPR, this patch fixes the offset sign in prologue and starts using REG_CFA_DEF_CFA

[PATCH] RISC-V: Fix vector cfi notes for stack-clash protection

2024-08-21 Thread Raphael Moreira Zinsly
The stack-clash code is generating wrong cfi directives in riscv_v_adjust_scalable_frame because REG_CFA_DEF_CFA has a different encoding than REG_FRAME_RELATED_EXPR, this patch fixes the offset sign in prologue and starts using REG_CFA_DEF_CFA in the epilogue. gcc/ChangeLog: * config/ris