From 2035c2b66a55a8ed8776f136d351ffe62739cab9 Mon Sep 17 00:00:00 2001 From: "yan.yihao 10263201" Date: Tue, 23 Sep 2025 11:45:34 +0800 Subject: [PATCH] Add RISC-V rva23 options --- rpmrc | 2 +- system-rpm-config.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rpmrc b/rpmrc index fb44aff..5dd97dd 100644 --- a/rpmrc +++ b/rpmrc @@ -6,4 +6,4 @@ optflags: aarch64 %{__global_compiler_flags} -mbranch-protection=standard -fasyn optflags: loongarch64 %{__global_compiler_flags} -fasynchronous-unwind-tables %[ "%{toolchain}" == "gcc" ? "-fstack-clash-protection" : "" ] -optflags: riscv64 %{__global_compiler_flags} -fasynchronous-unwind-tables %[ "%{toolchain}" == "gcc" ? "-fstack-clash-protection" : "" ] +optflags: riscv64 %{__global_compiler_flags} -fasynchronous-unwind-tables %[ "%{toolchain}" == "gcc" ? "-fstack-clash-protection -march=rv64imafdcbv_zicsr_zicntr_zihpm_ziccif_ziccrse_ziccamoa_zicclsm_zic64b_za64rs_zihintpause_zba_zbb_zbs_zicbom_zicbop_zicboz_zfhmin_zkt_zvfhmin_zvbb_zvkt_zihintntl_zicond_zimop_zcmop_zcb_zfa_zawrs -mabi=lp64d" : "" ] diff --git a/system-rpm-config.spec b/system-rpm-config.spec index a1c44b5..6b527eb 100644 --- a/system-rpm-config.spec +++ b/system-rpm-config.spec @@ -1,4 +1,4 @@ -%define anolis_release 38 +%define anolis_release 39 Summary: Anolis OS specific rpm configuration files Name: system-rpm-config @@ -211,6 +211,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/anolis/srpm forge.lua %license MulanPSL %changelog +* Tue Sep 23 2025 Yihao Yan - 1:23-39 +- add RISC-V RVA23 options sync from https://gitee.com/src-anolis-os/gcc/pulls/67 + * Tue Apr 22 2025 Yihao Yan - 1:23-38 - add riscv64 for java and nodejs macros - add optflags for riscv64 -- Gitee