https://gcc.gnu.org/g:f4bc29810476dd9e964a49cd8e1b57b454e6d409

commit f4bc29810476dd9e964a49cd8e1b57b454e6d409
Author: Dongyan Chen <[email protected]>
Date:   Mon Sep 15 21:49:15 2025 -0600

    RISC-V: Imply zicsr for sdtrig and ssstrict extensions.
    
    This patch implies zicsr for sdtrig and ssstrict extensions.
    According to the riscv-privileged spec, the sdtrig and ssstrict extensions
    are privileged extensions, so they should imply zicsr.
    
    gcc/ChangeLog:
    
            * config/riscv/riscv-ext.def: Imply zicsr.
    
    (cherry picked from commit 3e932d6384c9bc415255a5d2453e7ddf2c4792f2)

Diff:
---
 gcc/config/riscv/riscv-ext.def | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/riscv/riscv-ext.def b/gcc/config/riscv/riscv-ext.def
index d162fa47efd9..80f534c64614 100644
--- a/gcc/config/riscv/riscv-ext.def
+++ b/gcc/config/riscv/riscv-ext.def
@@ -1564,7 +1564,7 @@ DEFINE_RISCV_EXT(
   /* FULL_NAME */ "sdtrig extension",
   /* DESC */ "",
   /* URL */ ,
-  /* DEP_EXTS */ ({}),
+  /* DEP_EXTS */ ({"zicsr"}),
   /* SUPPORTED_VERSIONS */ ({{1, 0}}),
   /* FLAG_GROUP */ sd,
   /* BITMASK_GROUP_ID */ BITMASK_NOT_YET_ALLOCATED,
@@ -1941,7 +1941,7 @@ DEFINE_RISCV_EXT(
   /* FULL_NAME */ "ssstrict extension",
   /* DESC */ "",
   /* URL */ ,
-  /* DEP_EXTS */ ({}),
+  /* DEP_EXTS */ ({"zicsr"}),
   /* SUPPORTED_VERSIONS */ ({{1, 0}}),
   /* FLAG_GROUP */ ss,
   /* BITMASK_GROUP_ID */ BITMASK_NOT_YET_ALLOCATED,

Reply via email to