Re: [PATCH v5] RISC-V: Fix regression of -fzero-call-used-regs=all

2023-04-11 Thread Kito Cheng via Gcc-patches
e.zh...@rivai.ai; kito.ch...@sifive.com; Li, Pan2 > > ; Wang, Yanzhang > > Subject: [PATCH v5] RISC-V: Fix regression of -fzero-call-used-regs=all > > > > From: Yanzhang Wang > > > > This patch registers a riscv specific function to > > TARGET_ZERO_

RE: [PATCH v5] RISC-V: Fix regression of -fzero-call-used-regs=all

2023-04-11 Thread Wang, Yanzhang via Gcc-patches
: Tuesday, April 11, 2023 7:38 PM > To: gcc-patches@gcc.gnu.org > Cc: juzhe.zh...@rivai.ai; kito.ch...@sifive.com; Li, Pan2 > ; Wang, Yanzhang > Subject: [PATCH v5] RISC-V: Fix regression of -fzero-call-used-regs=all > > From: Yanzhang Wang > > This patch regis

[PATCH v5] RISC-V: Fix regression of -fzero-call-used-regs=all

2023-04-11 Thread yanzhang.wang--- via Gcc-patches
From: Yanzhang Wang This patch registers a riscv specific function to TARGET_ZERO_CALL_USED_REGS instead of default in targhooks.cc. It will clean gpr and vector relevant registers. PR 109104 gcc/ChangeLog: * config/riscv/riscv-protos.h (emit_hard_vlmax_vsetvl): * confi